File tree 3 files changed +31
-4
lines changed
integration-tests/src/test/java/org/springframework/aot/test
3 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 1
1
version =7.0.0-SNAPSHOT
2
2
3
3
org.gradle.caching =true
4
- org.gradle.jvmargs =-Xmx2048m
4
+ org.gradle.jvmargs =-Xmx4g
5
5
org.gradle.parallel =true
6
-
7
6
kotlinVersion =2.1.20
8
7
9
8
kotlin.jvm.target.validation.mode =ignore
Original file line number Diff line number Diff line change
1
+ initscript {
2
+ repositories {
3
+ maven { url " https://plugins.gradle.org/m2" }
4
+ }
5
+ dependencies { classpath(" org.openrewrite:plugin:7.2.1" ) }
6
+ }
7
+ rootProject {
8
+ plugins. apply(org.openrewrite.gradle.RewritePlugin )
9
+ dependencies {
10
+ rewrite(" org.openrewrite.recipe:rewrite-migrate-java:3.4.0" )
11
+ }
12
+ rewrite {
13
+ // activeRecipe("org.openrewrite.java.migrate.UpgradeToJava17")
14
+ // activeRecipe("org.openrewrite.java.migrate.UpgradeToJava21")
15
+ // activeRecipe("org.openrewrite.java.migrate.lang.var.UseVarForObject")
16
+ // activeRecipe("org.openrewrite.java.migrate.lang.var.UseVarForPrimitive")
17
+ // activeRecipe("org.openrewrite.staticanalysis.FinalizeLocalVariables")
18
+ activeRecipe(" org.openrewrite.staticanalysis.RemoveUnusedLocalVariables" )
19
+ // activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateFields")
20
+ // activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods")
21
+ setExportDatatables(true )
22
+ }
23
+ afterEvaluate {
24
+ if (repositories. isEmpty()) {
25
+ repositories {
26
+ mavenCentral()
27
+ }
28
+ }
29
+ }
30
+ }
Original file line number Diff line number Diff line change @@ -26,13 +26,11 @@ public class SampleReflection {
26
26
27
27
@ SuppressWarnings ("unused" )
28
28
public void sample () {
29
- String value = "Sample" ;
30
29
Method [] methods = String .class .getMethods ();
31
30
}
32
31
33
32
@ SuppressWarnings ("unused" )
34
33
public void multipleCalls () {
35
- String value = "Sample" ;
36
34
Method [] methods = String .class .getMethods ();
37
35
methods = Integer .class .getMethods ();
38
36
}
You can’t perform that action at this time.
0 commit comments