Skip to content

Commit 57da58d

Browse files
author
Vincent Potucek
committed
RemoveUnused
1 parent 255c560 commit 57da58d

File tree

33 files changed

+103
-10
lines changed

33 files changed

+103
-10
lines changed

.editorconfig

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
[*]
1+
root = true
2+
3+
[*.{adoc,bat,groovy,html,java,js,jsp,kt,kts,md,properties,py,rb,sh,sql,svg,txt,xml,xsd}]
24
charset = utf-8
3-
end_of_line = lf
45

56
[*.{groovy,java,kt,kts,xml,xsd}]
6-
ij_continuation_indent_size = 8
7-
indent_size = 4
87
indent_style = tab
9-
max_line_length = 120
8+
indent_size = 4
9+
continuation_indent_size = 8
10+
end_of_line = lf

buildSrc/config/checkstyle/checkstyle.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<module name="RedundantImport"/>
2121
<!-- Modifiers -->
2222
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck"/>
23-
<!-- <module name="FinalLocalVariable"/>-->
2423

2524
</module>
2625

framework-docs/src/main/java/org/springframework/docs/integration/cache/cachestoreconfigurationnoop/CacheConfiguration.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
@Configuration
2727
class CacheConfiguration {
2828

29+
private CacheManager jdkCache() {
30+
return null;
31+
}
32+
33+
private CacheManager gemfireCache() {
34+
return null;
35+
}
36+
2937
// tag::snippet[]
3038
@Bean
3139
CacheManager cacheManager(CacheManager jdkCache, CacheManager gemfireCache) {

framework-docs/src/main/java/org/springframework/docs/testing/mockmvc/assertj/mockmvctestersetup/AccountControllerStandaloneTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
1616

1717
package org.springframework.docs.testing.mockmvc.assertj.mockmvctestersetup;
1818

19+
import org.springframework.test.web.servlet.assertj.MockMvcTester;
20+
1921
// tag::snippet[]
2022
public class AccountControllerStandaloneTests {
2123

24+
private final MockMvcTester mockMvc = MockMvcTester.of(new AccountController());
25+
2226
// ...
2327

2428
}

framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigpathmatching/WebConfiguration.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.springframework.web.method.HandlerTypePredicate;
66
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
77
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
8+
import org.springframework.web.util.pattern.PathPatternParser;
89

910
// tag::snippet[]
1011
@Configuration
@@ -14,5 +15,11 @@ public class WebConfiguration implements WebMvcConfigurer {
1415
public void configurePathMatch(PathMatchConfigurer configurer) {
1516
configurer.addPathPrefix("/api", HandlerTypePredicate.forAnnotation(RestController.class));
1617
}
18+
19+
private PathPatternParser patternParser() {
20+
PathPatternParser pathPatternParser = new PathPatternParser();
21+
// ...
22+
return pathPatternParser;
23+
}
1724
}
1825
// end::snippet[]

import-into-eclipse.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +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
52-
of memory errors: `-XX:MaxPermSize=2g -Xmx2g -XX:MaxHeapSize=2g`
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`
5352

5453
## Tips
5554

import-into-idea.md

Lines changed: 1 addition & 1 deletion
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=2g -Xmx2g -XX:MaxHeapSize=2g
22+
-XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m
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

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

Lines changed: 2 additions & 0 deletions
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
}

spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectJAdvisorBeanRegistrationAotProcessorTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ void process(Class<?> beanClass) {
7474

7575

7676
static class AspectJClass {
77+
private static java.lang.Throwable ajc$initFailureCause;
7778
}
7879

7980
static class RegularClass {
81+
private static java.lang.Throwable initFailureCause;
8082
}
8183

8284
}

spring-beans/src/test/java/org/springframework/beans/PropertyMatchesTests.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ public void setCounter3(int counter3) {
183183
@SuppressWarnings("unused")
184184
private static class SampleFieldProperties {
185185

186+
private String name;
187+
188+
private String description;
189+
190+
private int counter1;
191+
192+
private int counter2;
193+
194+
private int counter3;
195+
186196
}
187197

188198
}

0 commit comments

Comments
 (0)