File tree Expand file tree Collapse file tree 3 files changed +31
-4
lines changed
integration-tests/src/test/java/org/springframework/aot/test Expand file tree Collapse file tree 3 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 11version =7.0.0-SNAPSHOT
22
33org.gradle.caching =true
4- org.gradle.jvmargs =-Xmx2048m
4+ org.gradle.jvmargs =-Xmx4g
55org.gradle.parallel =true
6-
76kotlinVersion =2.1.20
87
98kotlin.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 {
2626
2727 @ SuppressWarnings ("unused" )
2828 public void sample () {
29- String value = "Sample" ;
3029 Method [] methods = String .class .getMethods ();
3130 }
3231
3332 @ SuppressWarnings ("unused" )
3433 public void multipleCalls () {
35- String value = "Sample" ;
3634 Method [] methods = String .class .getMethods ();
3735 methods = Integer .class .getMethods ();
3836 }
You can’t perform that action at this time.
0 commit comments