From 585195d995157edb65fff3a221eef5c89ebefeeb Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 16 Nov 2018 10:54:14 +0000 Subject: [PATCH] Remove redundant synchronized keyword If the other 2 public methods don't need it, then I reckon this one doesn't. --- .../cloud/config/server/resource/ResourceController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/resource/ResourceController.java b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/resource/ResourceController.java index 4c9786a5..f455ac35 100644 --- a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/resource/ResourceController.java +++ b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/resource/ResourceController.java @@ -127,7 +127,7 @@ public class ResourceController { } @RequestMapping(value = "/{name}/{profile}/{label}/**", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE) - public synchronized byte[] binary(@PathVariable String name, + public byte[] binary(@PathVariable String name, @PathVariable String profile, @PathVariable String label, HttpServletRequest request) throws IOException { String path = getFilePath(request, name, profile, label);