author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
478,619
07.06.2021 17:55:13
25,200
8d14d00f985ec0f8134a406a992168075e871014
Backing out this test harness.
[ { "change_type": "MODIFY", "old_path": "rewrite-test/build.gradle.kts", "new_path": "rewrite-test/build.gradle.kts", "diff": "dependencies {\napi(project(\":rewrite-core\"))\napi(project(\":rewrite-java\"))\n- api(project(\":rewrite-maven\"))\napi(\"org.eclipse.jgit:org.eclipse.jgit:latest.release\"...
Java
Apache License 2.0
openrewrite/rewrite
Backing out this test harness.
478,636
08.06.2021 14:07:47
25,200
a4a7c2d12984cd9a19d29a36a338b021c24cd803
Test for issue UnecessaryThrows drops exception from AutoCloseable
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/cleanup/UnnecessaryThrowsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/cleanup/UnnecessaryThrowsTest.kt", "diff": "*/\npackage org.openrewrite.java.cleanup\n+import org.junit.jupiter....
Java
Apache License 2.0
openrewrite/rewrite
Test for issue #631. UnecessaryThrows drops exception from AutoCloseable
478,641
08.06.2021 20:22:20
18,000
e669cfde293b634096bd61de8138e0803cd97f09
Test demonstrating ChangeFieldName not changing statically imported names
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/ChangeFieldNameTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/ChangeFieldNameTest.kt", "diff": "*/\npackage org.openrewrite.java\n+import org.junit.jupiter.api.Disabled\nimport org.jun...
Java
Apache License 2.0
openrewrite/rewrite
Test demonstrating ChangeFieldName not changing statically imported names (#633)
478,630
08.06.2021 20:40:25
25,200
ec5cd4a880e0d328d8f686f39e315b2973c2f4e0
Add URI of where a recipe is loaded from to its RecipeDescriptor. This supports being able to attribute a recipe to its jar, and thereby the jar's GAV coordinates, when generating documentation
[ { "change_type": "MODIFY", "old_path": "rewrite-core/src/main/java/org/openrewrite/config/RecipeDescriptor.java", "new_path": "rewrite-core/src/main/java/org/openrewrite/config/RecipeDescriptor.java", "diff": "import lombok.Value;\nimport lombok.With;\n+import java.net.URI;\nimport java.util.List;\n...
Java
Apache License 2.0
openrewrite/rewrite
Add URI of where a recipe is loaded from to its RecipeDescriptor. This supports being able to attribute a recipe to its jar, and thereby the jar's GAV coordinates, when generating documentation
478,641
09.06.2021 00:04:29
18,000
e9538cce891bf6ce3c8b61ad85e694a662528eb9
tiny polish, bump to plugin 5.x
[ { "change_type": "MODIFY", "old_path": "build.gradle.kts", "new_path": "build.gradle.kts", "diff": "@@ -28,7 +28,7 @@ plugins {\nid(\"nebula.source-jar\") version \"17.3.2\" apply false\nid(\"nebula.maven-apache-license\") version \"17.3.2\" apply false\n- id(\"org.openrewrite.rewrite\") version \"4...
Java
Apache License 2.0
openrewrite/rewrite
tiny polish, bump to plugin 5.x
478,641
09.06.2021 13:58:43
18,000
9b5f84c37fd98dc6cbe9e7a09a29cb15233b4b09
Test for continuation indents on nested method chaining
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "diff": "@@ -19,7 +19,6 @@ import org.junit.jupiter.api.Disabled\nimport org.junit.ju...
Java
Apache License 2.0
openrewrite/rewrite
Test for continuation indents on nested method chaining (#635)
478,605
09.06.2021 13:57:32
25,200
872e5880cc00530930ba8e5cb46626c52696fcfa
Set default tab indent size to 1. (fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "diff": "@@ -97,7 +97,7 @@ public TabsAndIndentsStyle getTabsAndIndentsStyle() {\nreturn new TabsAndInd...
Java
Apache License 2.0
openrewrite/rewrite
Set default tab indent size to 1. (fixes #638)
478,641
10.06.2021 12:14:53
18,000
f285a1c2f6062c03d195600ef7383bb611355803
continuation indentation on method chaining as arguments
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -297,7 +297,7 @@ public Space visitSpace(Space space, Space.Locatio...
Java
Apache License 2.0
openrewrite/rewrite
continuation indentation on method chaining as arguments (#637)
478,630
10.06.2021 11:05:43
25,200
e4b5e8f47ccf2f5f345c61bedf29e0e12369c424
Package XmlRecipeTest, YamlRecipeTest, PropertiesRecipeTest, MavenRecipeTest for use in downstream projects. I swear this isn't a circular dependency. Closes
[ { "change_type": "MODIFY", "old_path": "rewrite-test/build.gradle.kts", "new_path": "rewrite-test/build.gradle.kts", "diff": "dependencies {\napi(project(\":rewrite-core\"))\napi(project(\":rewrite-java\"))\n+ api(project(\":rewrite-maven\"))\n+ api(project(\":rewrite-xml\"))\n+ api(project(\":rewri...
Java
Apache License 2.0
openrewrite/rewrite
Package XmlRecipeTest, YamlRecipeTest, PropertiesRecipeTest, MavenRecipeTest for use in downstream projects. I swear this isn't a circular dependency. Closes #503
478,641
10.06.2021 13:45:41
18,000
e56686a75995ef274e6f46a54ffef416b4a6e19e
Ability to upgrade maven plugin version
[ { "change_type": "ADD", "old_path": null, "new_path": "rewrite-maven/src/main/java/org/openrewrite/maven/UpgradePluginVersion.java", "diff": "+/*\n+ * Copyright 2020 the original author or authors.\n+ * <p>\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use t...
Java
Apache License 2.0
openrewrite/rewrite
Ability to upgrade maven plugin version (#579)
478,605
10.06.2021 13:59:58
25,200
52354d77359777c090885efc9edf0ceccf66ee87
Prevent index out of bound in TabsAndIndentsVisitor#shift(). fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -434,10 +434,14 @@ private void shift(StringBuilder text, int shift...
Java
Apache License 2.0
openrewrite/rewrite
Prevent index out of bound in TabsAndIndentsVisitor#shift(). fixes #521 (#648)
478,630
10.06.2021 14:56:55
25,200
4068f63a214b1cafdebd83f9a4b0bb8f995fb45c
Fix JavaTemplate fails to type-attribute method invocations that include primitive types short, byte, and char. Fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/internal/template/Substitutions.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/internal/template/Substitutions.java", "diff": "@@ -106,15 +106,21 @@ public String substitute() {\ncase Boolean...
Java
Apache License 2.0
openrewrite/rewrite
Fix JavaTemplate fails to type-attribute method invocations that include primitive types short, byte, and char. Fixes #650
478,630
10.06.2021 19:23:26
25,200
5967a0f948a17b656ae1d3093197812c02d565fd
Remove JavaType.Method.lookupExistingType(). After considering I don't think we want to add this to our public API, at least in its current form. Since it isn't strictly necessary for the one use case we had for it I'm removing it for now
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/JavaTemplate.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/JavaTemplate.java", "diff": "@@ -357,20 +357,18 @@ public J visitMethodInvocation(J.MethodInvocation method, Integer integer) {\nif...
Java
Apache License 2.0
openrewrite/rewrite
Remove JavaType.Method.lookupExistingType(). After considering I don't think we want to add this to our public API, at least in its current form. Since it isn't strictly necessary for the one use case we had for it I'm removing it for now
478,630
14.06.2021 10:32:50
25,200
b7c0658ce50b1974c55b85249d69de20b58e8b66
Add validation to JavaRecipeTest that method invocations are type attributed.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/tree/JavaType.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/tree/JavaType.java", "diff": "@@ -641,7 +641,7 @@ public boolean deepEquals(@Nullable JavaType type) {\nprivate final FullyQualifi...
Java
Apache License 2.0
openrewrite/rewrite
Add validation to JavaRecipeTest that method invocations are type attributed. (#654)
478,641
14.06.2021 13:18:19
18,000
169141962e56965084039ada8be3e865b3446736
test to demonstrate continuation indent when method block has closing bracket on its own line
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "diff": "@@ -186,6 +186,51 @@ interface TabsAndIndentsTest : JavaRecipeTest {\n\"\"\"...
Java
Apache License 2.0
openrewrite/rewrite
test to demonstrate continuation indent when method block has closing bracket on its own line (#661)
478,605
14.06.2021 11:39:27
25,200
1404aaac5da486af59c84752d58c109be78664e1
Applies formatting to single line comments in tabs and indents visitor. Added comment formatting in various positions of a class. Pass in the Space.Location instead.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -156,7 +156,7 @@ public Space visitSpace(Space space, Space.Locatio...
Java
Apache License 2.0
openrewrite/rewrite
Applies formatting to single line comments in tabs and indents visitor. (#651) Added comment formatting in various positions of a class. Pass in the Space.Location instead.
478,605
14.06.2021 13:17:22
25,200
cb9f0fa4b052ca5deaafe451131dd2525f54db34
Add base for formatting javadoc and block comments. Only shift whitespace instead of the entire text. Fixes Code clean up.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "import org.openrewrite.Cursor;\nimport org.openrewrite.Tree;\nimport o...
Java
Apache License 2.0
openrewrite/rewrite
Add base for formatting javadoc and block comments. (#659) Only shift whitespace instead of the entire text. Fixes #652 Code clean up.
478,617
14.06.2021 22:17:50
-7,200
f160c51e61f202dcc9dccc8853dcb7d6b8e3b0f2
Fix small typo in description of XML category
[ { "change_type": "MODIFY", "old_path": "rewrite-xml/src/main/resources/META-INF/rewrite/xml-categories.yml", "new_path": "rewrite-xml/src/main/resources/META-INF/rewrite/xml-categories.yml", "diff": "type: specs.openrewrite.org/v1beta/category\nname: XML\npackageName: org.openrewrite.xml\n-descripti...
Java
Apache License 2.0
openrewrite/rewrite
Fix small typo in description of XML category (#662)
478,630
14.06.2021 13:35:17
25,200
9acd61e0402e3f4666bdedc90d0e28ec0af67062
Add example values to Recipe for org.openrewrite.java
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/ChangeMethodTargetToVariable.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/ChangeMethodTargetToVariable.java", "diff": "example = \"org.mycorp.A method(..)\")\nString methodPattern;\n- @Opti...
Java
Apache License 2.0
openrewrite/rewrite
Add example values to Recipe @Options for org.openrewrite.java
478,630
14.06.2021 14:57:30
25,200
f37fc5b4b0ac8530a35cd243af2702ddf70e10d2
Add example values to Recipe for org.openrewrite.maven
[ { "change_type": "MODIFY", "old_path": "rewrite-maven/src/main/java/org/openrewrite/maven/AddDependency.java", "new_path": "rewrite-maven/src/main/java/org/openrewrite/maven/AddDependency.java", "diff": "@Option(displayName = \"Releases only\",\ndescription = \"Whether to exclude snapshots from cons...
Java
Apache License 2.0
openrewrite/rewrite
Add example values to Recipe @Options for org.openrewrite.maven
478,630
14.06.2021 15:00:13
25,200
93a5df76f9dd2916c23e6e31ba4ce1f8f8f96f7e
Add example values to Recipe for org.openrewrite.yaml
[ { "change_type": "MODIFY", "old_path": "rewrite-yaml/src/main/java/org/openrewrite/yaml/CoalesceProperties.java", "new_path": "rewrite-yaml/src/main/java/org/openrewrite/yaml/CoalesceProperties.java", "diff": "import org.openrewrite.ExecutionContext;\nimport org.openrewrite.Recipe;\nimport org.openr...
Java
Apache License 2.0
openrewrite/rewrite
Add example values to Recipe @Options for org.openrewrite.yaml
478,630
14.06.2021 15:34:54
25,200
460b585199d44f3d47fe372728d13362aa4d4e10
Fill in all remaining missing Recipe descriptions and examples
[ { "change_type": "MODIFY", "old_path": "rewrite-core/src/main/java/org/openrewrite/text/ChangeText.java", "new_path": "rewrite-core/src/main/java/org/openrewrite/text/ChangeText.java", "diff": "public class ChangeText extends Recipe {\n- @Option(displayName = \"To Text\", description = \"Text to cha...
Java
Apache License 2.0
openrewrite/rewrite
Fill in all remaining missing Recipe @Option descriptions and examples
478,605
14.06.2021 16:21:50
25,200
21299dd4cfbe30e225ee7ad1cc156187f83f46db
Added catch, and finally to condition that sets parent alignment. Fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "import org.openrewrite.Cursor;\nimport org.openrewrite.Tree;\nimport o...
Java
Apache License 2.0
openrewrite/rewrite
Added catch, and finally to condition that sets parent alignment. Fixes #641
478,630
14.06.2021 21:31:50
25,200
84471effb061bbf34f1ff061e94fe10624943ee8
Enforce within JavaRecipeTest that method invocation names and type information must agree. Also fix bugs uncovered by the new rule.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/JavaTemplate.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/JavaTemplate.java", "diff": "@@ -345,17 +345,23 @@ public J visitMethodDeclaration(J.MethodDeclaration method, Integer p) {\n@Overr...
Java
Apache License 2.0
openrewrite/rewrite
Enforce within JavaRecipeTest that method invocation names and type information must agree. Also fix bugs uncovered by the new rule.
478,630
14.06.2021 22:01:33
25,200
6ba151b8297711df9c7eead933ad40bf818aba9b
Remove unfinished snippet from J.MethodInvocation.withArguments()
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/tree/J.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/tree/J.java", "diff": "@@ -3194,10 +3194,6 @@ public MethodInvocation withName(J.Identifier name) {\npublic MethodInvocation withArgument...
Java
Apache License 2.0
openrewrite/rewrite
Remove unfinished snippet from J.MethodInvocation.withArguments()
478,617
10.06.2021 22:07:24
-7,200
9aab7148ed9431c95bf956b0ade0c297a9019c7d
New recipe and visitor to change the access level of a java method Fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java-11/src/test/kotlin/org/openrewrite/java/Java11VisitorDebugTests.kt", "new_path": "rewrite-java-11/src/test/kotlin/org/openrewrite/java/Java11VisitorDebugTests.kt", "diff": "@@ -69,6 +69,10 @@ class Java11ChangeFieldTypeTest : Java11Test, ChangeFie...
Java
Apache License 2.0
openrewrite/rewrite
New recipe and visitor to change the access level of a java method Fixes #622
478,617
13.06.2021 12:31:13
-7,200
bc90bd7524b4ef8eebfa8e7867066ee51575eb32
Use new ChangeMethodAccessLevelVisitor in HideUtilityClassConstructorVisitor to reduce duplicated code and logic
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/MethodMatcher.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/MethodMatcher.java", "diff": "@@ -84,6 +84,10 @@ public Void visitMethodPattern(MethodSignatureParser.MethodPatternContext ctx) {\...
Java
Apache License 2.0
openrewrite/rewrite
Use new ChangeMethodAccessLevelVisitor in HideUtilityClassConstructorVisitor to reduce duplicated code and logic
478,641
15.06.2021 12:51:02
18,000
15c7a041d965477be155040374a0fcb0fe369a86
polish AddApache2LicenseHeader to fix displayName and include description
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/resources/META-INF/rewrite/apache-license-header.yml", "new_path": "rewrite-java/src/main/resources/META-INF/rewrite/apache-license-header.yml", "diff": "---\ntype: specs.openrewrite.org/v1beta/recipe\nname: org.openrewrite.java.AddApache...
Java
Apache License 2.0
openrewrite/rewrite
polish AddApache2LicenseHeader to fix displayName and include description
478,641
15.06.2021 13:05:24
18,000
da0d812a64e630a62b345f44390e8ae6f9061aa1
polish, punctuation ending on AddLicenseHeader
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/AddLicenseHeader.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/AddLicenseHeader.java", "diff": "@@ -48,7 +48,7 @@ public String getDisplayName() {\n@Override\npublic String getDescription() ...
Java
Apache License 2.0
openrewrite/rewrite
polish, punctuation ending on AddLicenseHeader
478,641
15.06.2021 13:05:58
18,000
3e711243acd2fb22a0167008e19a17cb157eb98f
polish, punctuation ending on RemoveAnnotation
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotation.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotation.java", "diff": "@@ -53,7 +53,7 @@ public String getDisplayName() {\n@Override\npublic String getDescription() ...
Java
Apache License 2.0
openrewrite/rewrite
polish, punctuation ending on RemoveAnnotation
478,641
15.06.2021 13:08:45
18,000
cc7910ac35849f664d775186c91bd66381bb4617
polish, add description to FinalizeLocalVariables
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/FinalizeLocalVariables.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/FinalizeLocalVariables.java", "diff": "@@ -28,6 +28,11 @@ public String getDisplayName() {\nreturn \"Fina...
Java
Apache License 2.0
openrewrite/rewrite
polish, add description to FinalizeLocalVariables
478,641
15.06.2021 13:13:00
18,000
28511a374871b8f17bf298e521474cc5e53c3e45
polish, add description for HideUtilityClassConstructor
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/HideUtilityClassConstructor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/HideUtilityClassConstructor.java", "diff": "@@ -30,6 +30,11 @@ public String getDisplayName() {\nret...
Java
Apache License 2.0
openrewrite/rewrite
polish, add description for HideUtilityClassConstructor
478,641
15.06.2021 13:13:37
18,000
8054fd9f3459f9e9e26a9c5e0810aeca78a86855
polish, final punctuation for MethodNameCasing
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/MethodNameCasing.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/MethodNameCasing.java", "diff": "@@ -33,7 +33,7 @@ public String getDisplayName() {\n@Override\npublic String g...
Java
Apache License 2.0
openrewrite/rewrite
polish, final punctuation for MethodNameCasing
478,641
15.06.2021 13:14:05
18,000
b655725f0706e399c3cd754bceab3a29f4533692
polish, final punctuation for RedundantFileCreation
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/RedundantFileCreation.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/RedundantFileCreation.java", "diff": "@@ -33,7 +33,7 @@ public String getDisplayName() {\n@Override\npubli...
Java
Apache License 2.0
openrewrite/rewrite
polish, final punctuation for RedundantFileCreation
478,641
15.06.2021 13:14:37
18,000
7239675f615b793da609710550ff609804a15967
polish, final punctuation for StaticMethodNotFinal
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/StaticMethodNotFinal.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/StaticMethodNotFinal.java", "diff": "@@ -30,7 +30,7 @@ public String getDisplayName() {\n@Override\npublic ...
Java
Apache License 2.0
openrewrite/rewrite
polish, final punctuation for StaticMethodNotFinal
478,641
15.06.2021 13:14:58
18,000
80c7bd027d23703814152d6c027bce265e169244
polish, final punctuation for UnnecessaryExplicitTypeArguments
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/UnnecessaryExplicitTypeArguments.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/UnnecessaryExplicitTypeArguments.java", "diff": "@@ -33,7 +33,7 @@ public String getDisplayName...
Java
Apache License 2.0
openrewrite/rewrite
polish, final punctuation for UnnecessaryExplicitTypeArguments
478,641
15.06.2021 13:17:56
18,000
218bbf2cb6931b0025736a5d06808be7eb6cce4c
polish, description for UnnecessaryParentheses
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/UnnecessaryParentheses.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/UnnecessaryParentheses.java", "diff": "@@ -28,6 +28,11 @@ public String getDisplayName() {\nreturn \"Remo...
Java
Apache License 2.0
openrewrite/rewrite
polish, description for UnnecessaryParentheses
478,641
15.06.2021 13:19:35
18,000
5d107dda6de4e6a309bb67df2e2a08712bd9ff5c
polish, description fixup on UnnecessaryExplicitTypeArguments
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/UnnecessaryExplicitTypeArguments.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/UnnecessaryExplicitTypeArguments.java", "diff": "@@ -33,7 +33,7 @@ public String getDisplayName...
Java
Apache License 2.0
openrewrite/rewrite
polish, description fixup on UnnecessaryExplicitTypeArguments
478,641
15.06.2021 13:22:03
18,000
9988bc7d4ea0508860934156275851cb70f263f3
polish, polish description on UnnecessaryThrows
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/UnnecessaryThrows.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/UnnecessaryThrows.java", "diff": "@@ -39,7 +39,7 @@ public String getDisplayName() {\n@Override\npublic String...
Java
Apache License 2.0
openrewrite/rewrite
polish, polish description on UnnecessaryThrows
478,641
15.06.2021 13:24:37
18,000
84cf07744a6924fcc9c42a37115f867088e1b358
polish, description for RemoveTrailingWhitespace
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/RemoveTrailingWhitespace.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/RemoveTrailingWhitespace.java", "diff": "@@ -25,6 +25,11 @@ public String getDisplayName() {\nreturn \"Re...
Java
Apache License 2.0
openrewrite/rewrite
polish, description for RemoveTrailingWhitespace
478,641
15.06.2021 13:25:36
18,000
616b0bf140262ecc2d9bf260e8a3a82b23b6504d
polish, add punctuation on FindText
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/search/FindText.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/search/FindText.java", "diff": "@@ -46,7 +46,7 @@ public String getDisplayName() {\n@Override\npublic String getDescription() {\...
Java
Apache License 2.0
openrewrite/rewrite
polish, add punctuation on FindText
478,641
15.06.2021 13:29:48
18,000
2c8bf03a12dba2c02dfc4d65a20d258fc1fa87ed
polish, description on ResultOfMethodCallIgnored
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/search/ResultOfMethodCallIgnored.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/search/ResultOfMethodCallIgnored.java", "diff": "@@ -43,6 +43,11 @@ public String getDisplayName() {\nreturn \"...
Java
Apache License 2.0
openrewrite/rewrite
polish, description on ResultOfMethodCallIgnored
478,641
15.06.2021 13:59:52
18,000
2717a9992f74c8cb77924293359e1d84b59d2b7b
polish, add ending formatting for ChangeDependencyScope polish name of ChangePropertyValue polish formatting on InsertYaml polish RemoveUnused polish comma usage in yaml
[ { "change_type": "MODIFY", "old_path": "rewrite-maven/src/main/java/org/openrewrite/maven/ChangeDependencyScope.java", "new_path": "rewrite-maven/src/main/java/org/openrewrite/maven/ChangeDependencyScope.java", "diff": "@@ -62,7 +62,7 @@ public String getDisplayName() {\n@Override\npublic String get...
Java
Apache License 2.0
openrewrite/rewrite
polish, add ending formatting for ChangeDependencyScope polish name of ChangePropertyValue polish formatting on InsertYaml polish RemoveUnused polish comma usage in yaml
478,641
15.06.2021 14:16:54
18,000
50a46bf391e70aaf866a5c2121a4a9b54d63ad4b
polish sentence in UpgradeDependencyVersion description add description for RemoveProperty add description for maven ChangePropertyValue add description for maven AddDependency add description for maven AddPlugin add description for maven FindProperties
[ { "change_type": "MODIFY", "old_path": "rewrite-maven/src/main/java/org/openrewrite/maven/AddDependency.java", "new_path": "rewrite-maven/src/main/java/org/openrewrite/maven/AddDependency.java", "diff": "@@ -132,6 +132,11 @@ public String getDisplayName() {\nreturn \"Add Maven dependency\";\n}\n+ @O...
Java
Apache License 2.0
openrewrite/rewrite
polish sentence in UpgradeDependencyVersion description add description for RemoveProperty add description for maven ChangePropertyValue add description for maven AddDependency add description for maven AddPlugin add description for maven FindProperties
478,605
15.06.2021 14:55:51
25,200
d91aa6a73a99c6edb74236a99f46778f7816f915
Added missing issue tags. Added test for issue
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "diff": "@@ -1496,6 +1496,7 @@ interface TabsAndIndentsTest : JavaRecipeTest {\n\"\"\...
Java
Apache License 2.0
openrewrite/rewrite
Added missing issue tags. Added test for issue #663
478,641
15.06.2021 18:22:27
18,000
2aa2c1c20b3568e9af2483fe08e36fe6902bc17a
set continuation indent when lambda body closing bracket is on a newline
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -219,6 +219,12 @@ public Space visitSpace(Space space, Space.Locati...
Java
Apache License 2.0
openrewrite/rewrite
set continuation indent when lambda body closing bracket is on a newline (#666)
478,641
16.06.2021 14:00:33
18,000
68cb34b68e653c84d57d3cf5050506e68d3b130a
add test demonstrating formatting issue
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/JavaTemplateTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/JavaTemplateTest.kt", "diff": "@@ -20,6 +20,7 @@ import com.google.common.io.CharSource\nimport com.google.googlejavaformat.j...
Java
Apache License 2.0
openrewrite/rewrite
add test demonstrating formatting issue [#673]
478,619
16.06.2021 14:50:19
25,200
c888745681f1d31d251dd467b0ed094616722c6c
Adding VarType to Java AST
[ { "change_type": "MODIFY", "old_path": "build.gradle.kts", "new_path": "build.gradle.kts", "diff": "@@ -16,7 +16,7 @@ plugins {\nid(\"com.github.johnrengelman.shadow\") version \"6.1.0\" apply false\nid(\"com.github.hierynomus.license\") version \"0.16.1\" apply false\n- id(\"org.jetbrains.kotlin.jv...
Java
Apache License 2.0
openrewrite/rewrite
Adding VarType to Java AST (#667)
478,641
16.06.2021 17:31:09
18,000
1f0f921d1c30c4b6cc828ca780375ba679711bca
use prefix from method invocation, fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/JavaTemplate.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/JavaTemplate.java", "diff": "@@ -374,7 +374,7 @@ public J visitMethodInvocation(J.MethodInvocation method, Integer integer) {\n.wit...
Java
Apache License 2.0
openrewrite/rewrite
use prefix from method invocation, fixes [#673]
478,641
17.06.2021 11:52:46
18,000
24ac20469fea9e264ddae346b0194b650f3b3940
test demonstrating lambda body block needs further indent
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "diff": "@@ -231,6 +231,38 @@ interface TabsAndIndentsTest : JavaRecipeTest {\n\"\"\"...
Java
Apache License 2.0
openrewrite/rewrite
test demonstrating lambda body block needs further indent [#679]
478,641
17.06.2021 12:36:37
18,000
0620039546b74ffc00fee75a69d9d775f2c6fd60
polish tests in tabsAndIndents with more appropriate style parameters simplify tabsAndIndentsTest associated with
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/format/TabsAndIndentsTest.kt", "diff": "@@ -93,7 +93,7 @@ interface TabsAndIndentsTest : JavaRecipeTest {\n@Test\n@I...
Java
Apache License 2.0
openrewrite/rewrite
polish tests in tabsAndIndents with more appropriate style parameters simplify tabsAndIndentsTest associated with [#679]
478,605
17.06.2021 13:01:31
25,200
629df7ba77a31a9b0a8b2bd7c19890391f75efed
Added conditions to replace mixed tabs and spaces with the provided or inferred convention. CR remediation: added comments to add context to code that normalizes whitespace.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -443,14 +443,36 @@ private Comment indentMultilineComment(Comment c...
Java
Apache License 2.0
openrewrite/rewrite
Added conditions to replace mixed tabs and spaces with the provided or inferred convention. (#680) CR remediation: added comments to add context to code that normalizes whitespace.
478,641
17.06.2021 17:07:21
18,000
c80dd11877d51c9194d02c80663f6bd99ec09ecf
handle indents on lambdas when bodies are more invocations
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -219,12 +219,16 @@ public Space visitSpace(Space space, Space.Locat...
Java
Apache License 2.0
openrewrite/rewrite
handle indents on lambdas when bodies are more invocations [#679] (#681)
478,630
18.06.2021 14:22:17
25,200
38726d790e02c9b13b6b93d64796baf50f5c5589
Add test for MethodMatcher matching any reciever type. Closes
[ { "change_type": "MODIFY", "old_path": ".idea/compiler.xml", "new_path": ".idea/compiler.xml", "diff": "<module name=\"rewrite.rewrite-benchmarks.jmh\" />\n</profile>\n</annotationProcessing>\n- <bytecodeTargetLevel target=\"1.8\" />\n+ <bytecodeTargetLevel target=\"1.8\">\n+ <module name=\"org.open...
Java
Apache License 2.0
openrewrite/rewrite
Add test for MethodMatcher matching any reciever type. Closes #629
478,605
18.06.2021 16:13:48
25,200
7b717926d1e949d261d1397acc1fce89e19aaaac
Adjust RemoveUnusedImport test to show issue
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/RemoveUnusedImportsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/RemoveUnusedImportsTest.kt", "diff": "*/\npackage org.openrewrite.java\n+import org.junit.jupiter.api.Disabled\nimport...
Java
Apache License 2.0
openrewrite/rewrite
Adjust RemoveUnusedImport test to show issue #687.
478,630
18.06.2021 18:39:50
25,200
792620d2191bb972ed5f1bb169c40a4c13a67a90
Enable enhanced type validation now that is fixed
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/cleanup/CovariantEqualsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/cleanup/CovariantEqualsTest.kt", "diff": "@@ -171,7 +171,6 @@ interface CovariantEqualsTest : JavaRecipeTest {\n@T...
Java
Apache License 2.0
openrewrite/rewrite
Enable enhanced type validation now that #653 is fixed
478,665
21.06.2021 13:27:27
25,200
02d3c705b9b9c8613fd0fc272d71a16a13195d55
Temporarily move RenameFile to org.openrewrite.java
[ { "change_type": "RENAME", "old_path": "rewrite-core/src/main/java/org/openrewrite/RenameFile.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/RenameFile.java", "diff": "* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n-p...
Java
Apache License 2.0
openrewrite/rewrite
Temporarily move RenameFile to org.openrewrite.java
478,665
21.06.2021 17:49:34
25,200
df439063987f199e300562bbae5252765a0f20ed
move RenameFile back to org.openrewrite, add core category descriptor
[ { "change_type": "RENAME", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/RenameFile.java", "new_path": "rewrite-core/src/main/java/org/openrewrite/RenameFile.java", "diff": "* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n-p...
Java
Apache License 2.0
openrewrite/rewrite
move RenameFile back to org.openrewrite, add core category descriptor
478,630
21.06.2021 18:30:04
25,200
6f19d8fd84c8a2bf34a87061bf23ccba8f351e25
Update MavenParserTest to accomodate the changes made in this commit
[ { "change_type": "MODIFY", "old_path": "rewrite-maven/src/test/kotlin/org/openrewrite/maven/MavenParserTest.kt", "new_path": "rewrite-maven/src/test/kotlin/org/openrewrite/maven/MavenParserTest.kt", "diff": "@@ -482,8 +482,8 @@ class MavenParserTest {\n}\n}\n}.use { mockRepo ->\n- val ctx = InMemory...
Java
Apache License 2.0
openrewrite/rewrite
Update MavenParserTest to accomodate the changes made in this commit https://github.com/openrewrite/rewrite/commit/23f27d361f4a4a5c5f6d3ba14636c044d456e96c
478,632
22.06.2021 10:21:57
18,000
32e329a00d9fff4c6889251095634899713535dc
Add filename into the error message to more explicitly note where errors in processing are ocurring.
[ { "change_type": "MODIFY", "old_path": "rewrite-properties/src/main/java/org/openrewrite/properties/PropertiesParser.java", "new_path": "rewrite-properties/src/main/java/org/openrewrite/properties/PropertiesParser.java", "diff": "return file;\n} catch (Throwable t) {\nsample.stop(MetricsHelper.error...
Java
Apache License 2.0
openrewrite/rewrite
Add filename into the error message to more explicitly note where errors in processing are ocurring. (#692)
478,605
22.06.2021 09:22:14
25,200
eb096f04ce8bb0fa933b7197cb638f43be925ff3
Added conditions to preserve the whitespace in block comments when the lines do not all start with asterisks.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "import org.openrewrite.Cursor;\nimport org.openrewrite.Tree;\nimport o...
Java
Apache License 2.0
openrewrite/rewrite
Added conditions to preserve the whitespace in block comments when the lines do not all start with asterisks. (#691)
478,605
22.06.2021 11:58:04
25,200
94e128334eb336eb6a5f1a4fb70c39bea927fcc3
Added condition to handle variables with modifiers. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotation.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotation.java", "diff": "@@ -103,7 +103,9 @@ public String getDescription() {\nList<J.Annotation> leadingAnnotations = ...
Java
Apache License 2.0
openrewrite/rewrite
Added condition to handle variables with modifiers. fixes #697
478,605
22.06.2021 14:26:00
25,200
b6ae23c1cb65e5cfd0dd128b18b0f6b5eb712a75
Use findIndent to call getWhitespaceIndent when a space has no comments.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -396,7 +396,7 @@ private Space indentTo(Space space, int column, Sp...
Java
Apache License 2.0
openrewrite/rewrite
Use findIndent to call getWhitespaceIndent when a space has no comments.
478,605
23.06.2021 15:45:37
25,200
bf6b1c8648a6c68fb0d1cf80673621d7314d8f9b
Update spring.yml to use TabsAndIndentsStyle with IntelliJ defaults. While useTabCharacter is true, tabSize 4 and indentSize 1 causes issues in the shift calculation, since the shift is always divided by the tabSize.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/resources/META-INF/rewrite/spring.yml", "new_path": "rewrite-java/src/main/resources/META-INF/rewrite/spring.yml", "diff": "@@ -34,8 +34,8 @@ styleConfigs:\n- org.openrewrite.java.style.TabsAndIndentsStyle:\nuseTabCharacter: true\ntabSize...
Java
Apache License 2.0
openrewrite/rewrite
Update spring.yml to use TabsAndIndentsStyle with IntelliJ defaults. While useTabCharacter is true, tabSize 4 and indentSize 1 causes issues in the shift calculation, since the shift is always divided by the tabSize.
478,605
23.06.2021 16:29:31
25,200
47f51b2f641efc3a9eaa13c4f3611355e55b5315
Refactored indentMultilineComment in TabsAndIndentsVisitor to use style.getTabSize to set calculate the indent. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -467,47 +467,53 @@ private Comment indentMultilineComment(Comment c...
Java
Apache License 2.0
openrewrite/rewrite
Refactored indentMultilineComment in TabsAndIndentsVisitor to use style.getTabSize to set calculate the indent. fixes #700
478,605
23.06.2021 18:40:45
25,200
fc0cb6dd3351d9be3969cf4f008a6a43fa315eea
In the TabsAndIndentsVisitor#indentMultilineComment - refactored the condition that appends ' ' to align the end of a block comment.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -597,8 +597,11 @@ private Comment indentMultilineComment(Comment co...
Java
Apache License 2.0
openrewrite/rewrite
In the TabsAndIndentsVisitor#indentMultilineComment - refactored the condition that appends ' ' to align the end of a block comment.
478,617
24.06.2021 07:20:37
-7,200
a23d9db51a3c441def27f6dd911fab3908b685f6
Optional fileMatcher option for properties recipe See
[ { "change_type": "MODIFY", "old_path": "rewrite-properties/src/main/java/org/openrewrite/properties/ChangePropertyKey.java", "new_path": "rewrite-properties/src/main/java/org/openrewrite/properties/ChangePropertyKey.java", "diff": "import lombok.EqualsAndHashCode;\nimport lombok.Value;\nimport org.o...
Java
Apache License 2.0
openrewrite/rewrite
Optional fileMatcher option for properties recipe (#690) See #656
478,605
24.06.2021 11:04:52
25,200
42250ed1f0b04919bf5e09f9ebe6807465becb67
Adjusted the block comment formatting in the TabsAndIndentsVisitor to handle offsets between the tabSize and indentSize. Format will also be preserved if useTabs is true and tabSize is 1.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -445,21 +445,27 @@ private Comment indentSingleLineComment(Comment ...
Java
Apache License 2.0
openrewrite/rewrite
Adjusted the block comment formatting in the TabsAndIndentsVisitor to handle offsets between the tabSize and indentSize. Format will also be preserved if useTabs is true and tabSize is 1.
478,641
24.06.2021 13:38:08
18,000
2279bce55bec5ed88e882aa1690fb600de712745
change type on method invocations appears to leave previous type
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/ChangeTypeTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/ChangeTypeTest.kt", "diff": "@@ -241,6 +241,32 @@ interface ChangeTypeTest : JavaRecipeTest {\n\"\"\"\n)\n+ @Test\n+ @Disabled\...
Java
Apache License 2.0
openrewrite/rewrite
change type on method invocations appears to leave previous type [#704]
478,641
24.06.2021 13:52:59
18,000
2d344a2b669c8a0f8e471449c815be533ea3bb75
polish test name to be more accurate
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/ChangeTypeTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/ChangeTypeTest.kt", "diff": "@@ -244,7 +244,7 @@ interface ChangeTypeTest : JavaRecipeTest {\n@Test\n@Disabled\n@Issue(\"https:...
Java
Apache License 2.0
openrewrite/rewrite
polish test name to be more accurate [#704]
478,665
24.06.2021 12:32:34
25,200
ad3d5c6685bdcddb1e039705c18cdd7f340c54c9
fixes maven parsing - propagate seen parent poms through dependency resolution tasks
[ { "change_type": "MODIFY", "old_path": "rewrite-maven/src/main/java/org/openrewrite/maven/internal/RawMavenResolver.java", "new_path": "rewrite-maven/src/main/java/org/openrewrite/maven/internal/RawMavenResolver.java", "diff": "@@ -390,7 +390,7 @@ private void processDependencies(ResolutionTask task...
Java
Apache License 2.0
openrewrite/rewrite
fixes #705 maven parsing - propagate seen parent poms through dependency resolution tasks
478,617
24.06.2021 23:47:47
-7,200
7a058c91a38477dbdaf010bfb36154efbcfc9504
Optional fileMatcher option for YAML recipes See
[ { "change_type": "MODIFY", "old_path": "rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeKey.java", "new_path": "rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeKey.java", "diff": "import lombok.EqualsAndHashCode;\nimport lombok.Value;\n-import org.openrewrite.ExecutionContext;\n-import o...
Java
Apache License 2.0
openrewrite/rewrite
Optional fileMatcher option for YAML recipes (#706) See #656
478,630
24.06.2021 15:40:01
25,200
c2071a6e7b1449071056ec16f94207aa647142d1
Fix ChangeType not updating the types on some identifiers. Add set of cursors to FindAllUsedTypes results so that you can find where the aberrant types are coming from
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/ChangeType.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/ChangeType.java", "diff": "@@ -169,9 +169,8 @@ public J visitIdentifier(J.Identifier ident, ExecutionContext ctx) {\n} else if (targe...
Java
Apache License 2.0
openrewrite/rewrite
Fix ChangeType not updating the types on some identifiers. Add set of cursors to FindAllUsedTypes results so that you can find where the aberrant types are coming from
478,632
25.06.2021 17:39:49
18,000
cda79ea35b5f6f63e2f0db1909c8d78f3f334c75
Perform deep merge on YAML with a merge visitor
[ { "change_type": "ADD", "old_path": null, "new_path": "rewrite-yaml/src/main/java/org/openrewrite/yaml/MergeYaml.java", "diff": "+package org.openrewrite.yaml;\n+\n+import lombok.EqualsAndHashCode;\n+import lombok.Value;\n+import org.intellij.lang.annotations.Language;\n+import org.openrewrite.*;\n+...
Java
Apache License 2.0
openrewrite/rewrite
Perform deep merge on YAML with a merge visitor (#713) Co-authored-by: Jonathan Schneider <jkschneider@gmail.com>
478,630
25.06.2021 15:05:43
25,200
a86e78c36aac95ed83231ba40e84d06adcbcb6c5
Include modifiers in FormatFirstClassPrefix
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/internal/FormatFirstClassPrefix.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/internal/FormatFirstClassPrefix.java", "diff": "if (c == cu.getClasses().get(0)) {\nJ.ClassDeclaration temp = au...
Java
Apache License 2.0
openrewrite/rewrite
Include modifiers in FormatFirstClassPrefix
478,630
25.06.2021 16:14:13
25,200
dbb415f54431ad070b022fca73d23ac0ba374a2e
Tweak FormatFirstClassPrefix to produce consistent results when there are whitespace changes to be made to modifiers, comments, etc.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/internal/FormatFirstClassPrefix.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/internal/FormatFirstClassPrefix.java", "diff": "J.ClassDeclaration c = classDecl;\nJ.CompilationUnit cu = getCur...
Java
Apache License 2.0
openrewrite/rewrite
Tweak FormatFirstClassPrefix to produce consistent results when there are whitespace changes to be made to modifiers, comments, etc.
478,605
25.06.2021 16:36:44
25,200
b0501709d8138a655c84b3e08a094b4132c6f722
Remove unnecessary conditions to check for CR characters in the comment formatting of the TabsAndIndentsVisitor.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -418,7 +418,7 @@ private Space indentTo(Space space, int column, Sp...
Java
Apache License 2.0
openrewrite/rewrite
Remove unnecessary conditions to check for CR characters in the comment formatting of the TabsAndIndentsVisitor.
478,630
25.06.2021 19:57:04
25,200
5c67c7b58cd81a17a980e6c0eea9c0118f105241
Suparate RemoveAnnotationVisitor into its own class. This is ergonomic/convenient for testing-frameworks' usage
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotation.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotation.java", "diff": "import lombok.EqualsAndHashCode;\nimport lombok.Value;\n-import org.openrewrite.ExecutionConte...
Java
Apache License 2.0
openrewrite/rewrite
Suparate RemoveAnnotationVisitor into its own class. This is ergonomic/convenient for testing-frameworks' usage
478,630
25.06.2021 19:58:47
25,200
bc70bbc916bbe554a1621d247c09a1d3df0fcc14
Disable incomplete MergeYamlTest for now
[ { "change_type": "MODIFY", "old_path": "rewrite-yaml/src/test/kotlin/MergeYamlTest.kt", "new_path": "rewrite-yaml/src/test/kotlin/MergeYamlTest.kt", "diff": "* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n+import org.junit.jupiter.api.Dis...
Java
Apache License 2.0
openrewrite/rewrite
Disable incomplete MergeYamlTest for now
478,605
28.06.2021 13:44:33
25,200
006cb47db4ba1b68f786bbfb8224dca118ef0827
Added check for CRLF in Autodetect#FindImportLayout. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "diff": "@@ -305,7 +305,7 @@ static String longestCommonPrefix(String pkg, @Nullable String lcp) {\nint...
Java
Apache License 2.0
openrewrite/rewrite
Added check for CRLF in Autodetect#FindImportLayout. fixes #718
478,665
28.06.2021 14:09:24
25,200
a7d1632aae7d4b546e47ca40f55d512a6abeeabd
exclude poms in src from maven project parsing
[ { "change_type": "MODIFY", "old_path": "rewrite-maven/src/main/java/org/openrewrite/maven/tree/Maven.java", "new_path": "rewrite-maven/src/main/java/org/openrewrite/maven/tree/Maven.java", "diff": "@@ -74,7 +74,8 @@ public Maven(UUID id, Path sourcePath, String prefix, Markers markers, Prolog pr\npu...
Java
Apache License 2.0
openrewrite/rewrite
exclude poms in src from maven project parsing
478,605
28.06.2021 14:11:34
25,200
8a310a861ebbac55f406be61da9d0aa9fc4e5833
Added condition to prevent multiple `all other imports` from being added to the ImportLayoutStyle. In Autodetect#ImportLayoutStatistics#ImportLayoutStyle. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "diff": "@@ -195,12 +195,12 @@ public ImportLayoutStyle getImportLayoutStyle() {\nswitch (block.type) {...
Java
Apache License 2.0
openrewrite/rewrite
Added condition to prevent multiple `all other imports` from being added to the ImportLayoutStyle. In Autodetect#ImportLayoutStatistics#ImportLayoutStyle. fixes #719
478,630
28.06.2021 15:05:14
25,200
0d4741def62d9aa6c82bb976e1e6b7b2160a6cef
Prevent StringIndexOutOfBounds in StringUtils.capitalize() and uncapitalize() on empty strings
[ { "change_type": "MODIFY", "old_path": "rewrite-core/src/main/java/org/openrewrite/internal/StringUtils.java", "new_path": "rewrite-core/src/main/java/org/openrewrite/internal/StringUtils.java", "diff": "@@ -179,11 +179,17 @@ public static String readFully(InputStream inputStream) {\n}\npublic stati...
Java
Apache License 2.0
openrewrite/rewrite
Prevent StringIndexOutOfBounds in StringUtils.capitalize() and uncapitalize() on empty strings
478,605
28.06.2021 16:19:08
25,200
47280562a5b001e471252db6cbf740977c09e8f7
Adjusted conditions that add importAllOthers and importStaticAllOthers() if it hasn't been added. Changed in Autodetect#getImportLayoutStyle.
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "diff": "@@ -225,11 +225,16 @@ public ImportLayoutStyle getImportLayoutStyle() {\n}\nif (!importAllOthe...
Java
Apache License 2.0
openrewrite/rewrite
Adjusted conditions that add importAllOthers and importStaticAllOthers() if it hasn't been added. Changed in Autodetect#getImportLayoutStyle.
478,605
28.06.2021 16:54:08
25,200
6149087238889980a6e2f7f945acb3c8330ca0a2
Removed Disabled from groupImportsIsAwareOfNestedClasses in OrderImportsTest.kt. Test was fixed, but is still disabled.
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/OrderImportsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/OrderImportsTest.kt", "diff": "*/\npackage org.openrewrite.java\n-import org.junit.jupiter.api.Disabled\nimport org.junit.jup...
Java
Apache License 2.0
openrewrite/rewrite
Removed Disabled from groupImportsIsAwareOfNestedClasses in OrderImportsTest.kt. Test was fixed, but is still disabled.
478,630
28.06.2021 18:57:21
25,200
4b515fbf72fdb3c214abf44d2c640126ada69658
Fix RecipeDescriptors sometimes failing to show non-declarative entries in recipe lists. Fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-core/src/main/java/org/openrewrite/config/ClasspathScanningLoader.java", "new_path": "rewrite-core/src/main/java/org/openrewrite/config/ClasspathScanningLoader.java", "diff": "* @param acceptPackages Limit scan to specified packages\n*/\npublic Classpa...
Java
Apache License 2.0
openrewrite/rewrite
Fix RecipeDescriptors sometimes failing to show non-declarative entries in recipe lists. Fixes #715
478,634
29.06.2021 09:02:06
25,200
e107327e563287bfe9c44d0d6d8d93e691677a42
fix(camelcase): do not rewrite instance variables of anonymous inner classes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/RenameLocalVariablesToCamelCase.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/cleanup/RenameLocalVariablesToCamelCase.java", "diff": "@@ -86,6 +86,8 @@ public String getDescription()...
Java
Apache License 2.0
openrewrite/rewrite
fix(camelcase): do not rewrite instance variables of anonymous inner classes (#725)
478,605
29.06.2021 11:50:03
25,200
85b19206d38eed6fc880dfa4786e4caed5040d7e
Added preservation of whitespace for trailing line comments. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -385,23 +385,33 @@ private Space indentTo(Space space, int column, ...
Java
Apache License 2.0
openrewrite/rewrite
Added preservation of whitespace for trailing line comments. fixes #722
478,605
30.06.2021 13:35:01
25,200
c62a4b0a60a793fd798eb30269a22c36b1fb2221
Remove annotations from a list with size greater than 1 while preserving the exising formatting in RemoveAnnotationVisitor. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotationVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotationVisitor.java", "diff": "import org.openrewrite.java.tree.Space;\nimport org.openrewrite.java.tree.TypeUt...
Java
Apache License 2.0
openrewrite/rewrite
Remove annotations from a list with size greater than 1 while preserving the exising formatting in RemoveAnnotationVisitor. fixes #728. (#732)
478,605
30.06.2021 13:45:04
25,200
8fbc3e2ca0f904b57caec27dc27d888278f69da3
Added check for empty leadingAnnotations in visitClassDec of RemoveAnnotationVisitor. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotationVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/RemoveAnnotationVisitor.java", "diff": "J.Annotation annotationRemoved = getCursor().pollMessage(\"annotationRemoved\");...
Java
Apache License 2.0
openrewrite/rewrite
Added check for empty leadingAnnotations in visitClassDec of RemoveAnnotationVisitor. fixes #727.
478,605
30.06.2021 16:06:02
25,200
2e42442c0ae6c6e05acd9ba3747c583e57ab87b8
Append `.` to pck in longest common prefix in Autodetect#getPattern. Refactored rewriteImportLayout test to reflect changes. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "diff": "@@ -263,7 +263,7 @@ static String getPattern(List<J.Import> imports) {\nString longestCommonPr...
Java
Apache License 2.0
openrewrite/rewrite
Append `.` to pck in longest common prefix in Autodetect#getPattern. Refactored rewriteImportLayout test to reflect changes. fixes #733 (#734)
478,605
01.07.2021 14:11:05
25,200
5090038afa739b65d32f89b50dd7629f49d1544e
Added normalization of suffixes for single line comments prior to shifting indent in TabsAndIndentsVisitor. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/format/TabsAndIndentsVisitor.java", "diff": "@@ -401,10 +401,11 @@ private Space indentTo(Space space, int column, ...
Java
Apache License 2.0
openrewrite/rewrite
Added normalization of suffixes for single line comments prior to shifting indent in TabsAndIndentsVisitor. fixes #737
478,641
02.07.2021 11:43:41
18,000
8e0130573c83d5f1d7021f4d5c9b8beaa85a3fcb
test for upgradeVersionWithGroupIdAndArtifactIdDefinedAsProperty
[ { "change_type": "MODIFY", "old_path": "rewrite-maven/src/test/kotlin/org/openrewrite/maven/UpgradeDependencyVersionTest.kt", "new_path": "rewrite-maven/src/test/kotlin/org/openrewrite/maven/UpgradeDependencyVersionTest.kt", "diff": "@@ -56,6 +56,99 @@ class UpgradeDependencyVersionTest : MavenRecip...
Java
Apache License 2.0
openrewrite/rewrite
test for upgradeVersionWithGroupIdAndArtifactIdDefinedAsProperty (#740)
478,605
02.07.2021 11:28:48
25,200
a7895cd2331ba1bcfb37fa1d4f49a3c99df4daf0
Refactored hasGroupId and hasArtifactId to assert each propertyKey value matches the parameter in MavenVisitor. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-maven/src/main/java/org/openrewrite/maven/MavenVisitor.java", "new_path": "rewrite-maven/src/main/java/org/openrewrite/maven/MavenVisitor.java", "diff": "@@ -100,8 +100,11 @@ private boolean hasGroupId(String groupId) {\nXml.Tag tag = getCursor().getVa...
Java
Apache License 2.0
openrewrite/rewrite
Refactored hasGroupId and hasArtifactId to assert each propertyKey value matches the parameter in MavenVisitor. fixes #739
478,605
02.07.2021 12:38:49
25,200
41a24e7cbb758dd82205bbeb26d33cc48f42b2e9
Use replace in ImportLayoutStyle#serializeFields. replaceAll is using a regex wildcard that replaces all characters. Added test to assert deserialization of serialized style. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/style/ImportLayoutStyle.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/style/ImportLayoutStyle.java", "diff": "@@ -552,9 +552,9 @@ private void serializeFields(ImportLayoutStyle value, JsonGe...
Java
Apache License 2.0
openrewrite/rewrite
Use replace in ImportLayoutStyle#serializeFields. replaceAll is using a regex wildcard that replaces all characters. Added test to assert deserialization of serialized style. fixes #742
478,605
02.07.2021 13:34:32
25,200
9eaf5cf77dd8f2fd9f6b8ade958f32850264d058
Added test to assert star import count is calculated correctly in autodetect. Added test in order import to assert the value prevent inserts from being folded.
[ { "change_type": "MODIFY", "old_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/OrderImportsTest.kt", "new_path": "rewrite-test/src/main/kotlin/org/openrewrite/java/OrderImportsTest.kt", "diff": "@@ -741,5 +741,53 @@ interface OrderImportsTest : JavaRecipeTest {\n}\n\"\"\"\n)\n+\n+ @Test\n...
Java
Apache License 2.0
openrewrite/rewrite
Added test to assert star import count is calculated correctly in autodetect. Added test in order import to assert the value prevent inserts from being folded.
478,619
05.07.2021 15:26:43
25,200
710177f4feb84ef757c54cd2e90669cdb3d99c64
Adding original exception when failing to create parser
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/JavaParser.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/JavaParser.java", "diff": "}\n} catch (Exception e) {\nthrow new IllegalStateException(\"Unable to create a Java parser instance. \" ...
Java
Apache License 2.0
openrewrite/rewrite
Adding original exception when failing to create parser
478,605
06.07.2021 12:07:07
25,200
f54d129b24123092d410d8c3b60f09673c77d89b
Adjusted minimumFoldedImports to use maximum count detected instead of minimum. fixes
[ { "change_type": "MODIFY", "old_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "new_path": "rewrite-java/src/main/java/org/openrewrite/java/style/Autodetect.java", "diff": "@@ -333,10 +333,13 @@ static String longestCommonPrefix(String pkg, @Nullable String lcp) {\n}...
Java
Apache License 2.0
openrewrite/rewrite
Adjusted minimumFoldedImports to use maximum count detected instead of minimum. fixes #746. (#747)
478,630
06.07.2021 12:55:54
25,200
4521e54a4722e7f486a86d1fdc3b72424ef10ee9
Add optional parameter to AddDependency. Closes
[ { "change_type": "MODIFY", "old_path": "rewrite-maven/src/main/java/org/openrewrite/maven/AddDependency.java", "new_path": "rewrite-maven/src/main/java/org/openrewrite/maven/AddDependency.java", "diff": "@With\nprivate String type;\n+ @Option(displayName = \"Optional\",\n+ description = \"Set the va...
Java
Apache License 2.0
openrewrite/rewrite
Add optional parameter to AddDependency. Closes #674
478,632
08.07.2021 10:57:21
18,000
b646117cebb392427bbc4bdec03312f24b1ea654
Add a StringUtils method to match two strings with a glob pattern
[ { "change_type": "MODIFY", "old_path": "rewrite-core/src/main/java/org/openrewrite/internal/StringUtils.java", "new_path": "rewrite-core/src/main/java/org/openrewrite/internal/StringUtils.java", "diff": "import java.io.IOException;\nimport java.io.InputStream;\nimport java.nio.charset.StandardCharse...
Java
Apache License 2.0
openrewrite/rewrite
Add a StringUtils method to match two strings with a glob pattern (#748)