From 788422f3eb8beeb1ace998529896729fb3e62f1f Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Fri, 21 Jun 2019 15:22:27 +0200 Subject: [PATCH] DATAREST-1397 - Polishing. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed the redeclaration of hasCorsConfigurationSource(…) in RepositoryRestHandlerMapping as it already inherits the one from BasePathAwareRestHandlerMapping. --- .../data/rest/webmvc/RepositoryRestHandlerMapping.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java index 55f799e8b..2024fdaa5 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java @@ -190,15 +190,6 @@ public class RepositoryRestHandlerMapping extends BasePathAwareHandlerMapping { return AnnotationUtils.findAnnotation(type, RepositoryRestController.class) != null; } - /* - * (non-Javadoc) - * @see org.springframework.web.servlet.handler.AbstractHandlerMapping#hasCorsConfigurationSource(java.lang.Object) - */ - @Override - protected boolean hasCorsConfigurationSource(Object handler) { - return true; - } - /* * (non-Javadoc) * @see org.springframework.web.servlet.handler.AbstractHandlerMapping#extendInterceptors(java.util.List)