Skip to content

Commit 456363f

Browse files
author
Vincent Potucek
committed
Pull #34808: apply RemoveUnusedPrivateMethods
Signed-off-by: Vincent Potucek <[email protected]>
1 parent 838b4d6 commit 456363f

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
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[]

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)