Patrick Way
Patrick Way
### Problem > Transforms recipe on the SaaS works fine when running the rewrite-maven-plugin ### Expected behavior > Removes `UnsupportedEncodingException` while the method declaration has a statement which invokes a...
looking at the switch this is likely an issue using java 11 on a java 17 project discovered while investating #2101 https://github.com/spring-projects/spring-framework/blob/main/spring-aop/src/main/java/org/springframework/aop/aspectj/annotation/ReflectiveAspectJAdvisorFactory.java ```java @SuppressWarnings("serial") public class ReflectiveAspectJAdvisorFactory extends AbstractAspectJAdvisorFactory implements...
Issue discovered with `src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java` ### Problem > Error: src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java:[494] (sizes) LineLength: Line is longer than 120 characters (found 124). Error: src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java:[494,84] (whitespace) ParenPad: '(' is not followed by whitespace. Error:...
Context from @JLLeitschuh > variable assignments on the right side of an assignment are valid for the left type. Also, verifying that arguments being passed to constructors or methods are...
[okhttp](https://github.com/openrewrite/rewrite/blob/665e8a0f65755baee280ae490d80a37fc5540eea/rewrite-maven/build.gradle.kts#L42) is pinned to 4.9.3 per: #1479 https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp Update to 5.x once 5.0.0 is released
### Problem Issue discovered with `org.restlet/src/main/java/org/restlet/representation/AppendableRepresentation.java` ### Expected behavior > Describe what you expected to see. ### Example diff ```diff public Appendable append(char c) throws IOException { if (this.appendableText ==...
### Problem Issue discovered with `src/main/java/hudson/plugins/cobertura/targets/CoverageMetric.java` ```diff * @since 10-Jul-2007 14:59:50 */ public enum CoverageMetric { - PACKAGES(new HasName() { + PACKAGES(/*~~(java.lang.NullPointerException: Cannot invoke "org.openrewrite.java.tree.TypeTree.printTrimmed(org.openrewrite.Cursor)" because the return value of...
Discovered while running common-statatic-analysis on https://github.com/apache/helix/blob/master/helix-core/src/test/java/org/apache/helix/monitoring/mbeans/TestTopStateHandoffMetrics.java  ```log java.lang.ClassCastException: class org.openrewrite.java.tree.J$MethodInvocation cannot be cast to class org.openrewrite.java.tree.J$Identifier (org.openrewrite.java.tree.J$MethodInvocation and org.openrewrite.java.tree.J$Identifier are in unnamed module of loader 'app') org.openrewrite.java.tree.J$FieldAccess.getName(J.java:1721) org.openrewrite.java.tree.J$FieldAccess.isFullyQualifiedClassReference(J.java:1771) org.openrewrite.java.tree.J$FieldAccess.isFullyQualifiedClassReference(J.java:1764)...
Discovered while testing controlflow statement formatting on https://github.com/apache/royale-compiler/ ```log [ERROR] Error parsing java.lang.IllegalStateException: compiler/src/test/resources/swfdumps/as_ASNamespaceTests_ASNamespace_custom_swfdump.xml Cannot invoke "org.antlr.v4.runtime.tree.TerminalNode.getText()" because "n" is null at org.openrewrite.xml.XmlParser.lambda$parseInputs$0 (XmlParser.java:75) at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:197) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1625)...