From a6530e1b13c714c8b5665b3ea24d970eed663ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Miller=20=28=E9=94=BA=E4=BF=8A=29?= Date: Tue, 20 Oct 2020 11:28:35 +0800 Subject: [PATCH] perf(Route): reduce code warning @SuppressWarnings("SameParameterValue") --- .../mediastreamingspringbootautoconfigure/api/VideoRoutes.java | 1 + 1 file changed, 1 insertion(+) diff --git a/media-streaming-spring-boot-autoconfigure/src/main/java/com/jmframework/boot/mediastreamingspringbootautoconfigure/api/VideoRoutes.java b/media-streaming-spring-boot-autoconfigure/src/main/java/com/jmframework/boot/mediastreamingspringbootautoconfigure/api/VideoRoutes.java index 9029c24..f598398 100644 --- a/media-streaming-spring-boot-autoconfigure/src/main/java/com/jmframework/boot/mediastreamingspringbootautoconfigure/api/VideoRoutes.java +++ b/media-streaming-spring-boot-autoconfigure/src/main/java/com/jmframework/boot/mediastreamingspringbootautoconfigure/api/VideoRoutes.java @@ -26,6 +26,7 @@ RouterFunction videoEndPoint(VideoRouteHandler videoRouteHandler ).build(); } + @SuppressWarnings("SameParameterValue") private static RequestPredicate param(String parameter) { return RequestPredicates.all().and(request -> request.queryParam(parameter).isPresent()); }