Skip to content

Pull #34808: apply RemoveUnusedPrivateMethods #34808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@
@Configuration
class CacheConfiguration {

private CacheManager jdkCache() {
return null;
}

private CacheManager gemfireCache() {
return null;
}

// tag::snippet[]
@Bean
CacheManager cacheManager(CacheManager jdkCache, CacheManager gemfireCache) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.springframework.web.method.HandlerTypePredicate;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.util.pattern.PathPatternParser;

// tag::snippet[]
@Configuration
Expand All @@ -15,11 +14,5 @@ public class WebConfiguration implements WebMvcConfigurer {
public void configurePathMatch(PathMatchConfigurer configurer) {
configurer.addPathPrefix("/api", HandlerTypePredicate.forAnnotation(RestController.class));
}

private PathPatternParser patternParser() {
PathPatternParser pathPatternParser = new PathPatternParser();
// ...
return pathPatternParser;
}
}
// end::snippet[]
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,6 @@ public DerivedConstructorDependenciesBean(TestBean spouse1, TestBean spouse2, In
setAge(age);
setName(name);
}

private void init() {
this.initialized = true;
}

private void destroy() {
this.destroyed = true;
}
}


Expand Down