Skip to content

Commit 34fa389

Browse files
author
Vincent Potucek
committed
Pull spring-projects#34809: fix xmx args
1 parent f64caf4 commit 34fa389

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

import-into-eclipse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _When instructed to execute `./gradlew` from the command line, be sure to execut
4848
1. While JUnit tests pass from the command line with Gradle, some may fail when run from
4949
the IDE.
5050
- Resolving this is a work in progress.
51-
- If attempting to run all JUnit tests from within the IDE, you may need to set the following VM options to avoid out of memory errors: `-XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m`
51+
- If attempting to run all JUnit tests from within the IDE, you may need to set the following VM options to avoid out of memory errors: `-XX:MaxPermSize=2g -Xmx2g -XX:MaxHeapSize=2g`
5252

5353
## Tips
5454

import-into-idea.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ IntelliJ IDEA. See https://youtrack.jetbrains.com/issue/IDEA-64446 for details.
1919
3. While JUnit tests pass from the command line with Gradle, some may fail when run from
2020
IntelliJ IDEA. Resolving this is a work in progress. If attempting to run all JUnit tests from within
2121
IntelliJ IDEA, you will likely need to set the following VM options to avoid out of memory errors:
22-
-XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m
22+
-XX:MaxPermSize=2g -Xmx2g -XX:MaxHeapSize=2g
2323
4. If you invoke "Rebuild Project" in the IDE, you'll have to generate some test
2424
resources of the `spring-oxm` module again (`./gradlew :spring-oxm:compileTestJava`)
2525

init.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ rootProject {
1515
// activeRecipe("org.openrewrite.java.migrate.lang.var.UseVarForObject")
1616
// activeRecipe("org.openrewrite.java.migrate.lang.var.UseVarForPrimitive")
1717
// activeRecipe("org.openrewrite.staticanalysis.FinalizeLocalVariables")
18-
activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedLocalVariables")
19-
// activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateFields")
18+
// activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedLocalVariables")
19+
activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateFields")
2020
// activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods")
2121
setExportDatatables(true)
2222
}

integration-tests/src/test/java/org/springframework/aot/test/SampleReflection.java

+2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ public class SampleReflection {
2626

2727
@SuppressWarnings("unused")
2828
public void sample() {
29+
String value = "Sample";
2930
Method[] methods = String.class.getMethods();
3031
}
3132

3233
@SuppressWarnings("unused")
3334
public void multipleCalls() {
35+
String value = "Sample";
3436
Method[] methods = String.class.getMethods();
3537
methods = Integer.class.getMethods();
3638
}

0 commit comments

Comments
 (0)