Skip to content

Commit 67a51ca

Browse files
author
Vincent Potucek
committed
Pull spring-projects#34808: apply RemoveUnusedPrivateMethods
Signed-off-by: Vincent Potucek <[email protected]>
1 parent 57da58d commit 67a51ca

File tree

5 files changed

+2
-54
lines changed

5 files changed

+2
-54
lines changed

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

-8
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@
2626
@Configuration
2727
class CacheConfiguration {
2828

29-
private CacheManager jdkCache() {
30-
return null;
31-
}
32-
33-
private CacheManager gemfireCache() {
34-
return null;
35-
}
36-
3729
// tag::snippet[]
3830
@Bean
3931
CacheManager cacheManager(CacheManager jdkCache, CacheManager gemfireCache) {

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

-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
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;
98

109
// tag::snippet[]
1110
@Configuration
@@ -15,11 +14,5 @@ public class WebConfiguration implements WebMvcConfigurer {
1514
public void configurePathMatch(PathMatchConfigurer configurer) {
1615
configurer.addPathPrefix("/api", HandlerTypePredicate.forAnnotation(RestController.class));
1716
}
18-
19-
private PathPatternParser patternParser() {
20-
PathPatternParser pathPatternParser = new PathPatternParser();
21-
// ...
22-
return pathPatternParser;
23-
}
2417
}
2518
// end::snippet[]

gradle.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
version=7.0.0-SNAPSHOT
22

33
org.gradle.caching=true
4-
org.gradle.jvmargs=-Xmx4g
4+
org.gradle.jvmargs=-Xmx2048m
55
org.gradle.parallel=true
6+
67
kotlinVersion=2.1.20
78

89
kotlin.jvm.target.validation.mode=ignore

init.gradle

-30
This file was deleted.

spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTestTypes.java

-8
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ public DerivedConstructorDependenciesBean(TestBean spouse1, TestBean spouse2, In
215215
setAge(age);
216216
setName(name);
217217
}
218-
219-
private void init() {
220-
this.initialized = true;
221-
}
222-
223-
private void destroy() {
224-
this.destroyed = true;
225-
}
226218
}
227219

228220

0 commit comments

Comments
 (0)