From a2f0b60950aebe372f5f1bcf5992aca134ff5240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Thu, 11 Jul 2019 17:28:43 +0200 Subject: [PATCH] Remove unused SuppresWarnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Pupier --- .../src/main/java/org/apache/camel/k/yaml/YamlRoutesLoader.java | 1 - .../main/java/org/apache/camel/k/yaml/model/Definitions.java | 2 -- .../camel/component/knative/http/KnativeHttpComponent.java | 1 - .../org/apache/camel/component/knative/KnativeEnvironment.java | 2 -- 4 files changed, 6 deletions(-) diff --git a/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/YamlRoutesLoader.java b/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/YamlRoutesLoader.java index 942317086..e67d1df27 100644 --- a/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/YamlRoutesLoader.java +++ b/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/YamlRoutesLoader.java @@ -41,7 +41,6 @@ public List getSupportedLanguages() { return Collections.singletonList("yaml"); } - @SuppressWarnings("uncheked") @Override public RouteBuilder load(CamelContext camelContext, Source source) throws Exception { return builder(URIResolver.resolve(camelContext, source)); diff --git a/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/model/Definitions.java b/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/model/Definitions.java index f1ffebf73..af9c7011f 100644 --- a/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/model/Definitions.java +++ b/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/model/Definitions.java @@ -37,14 +37,12 @@ public final class Definitions { private Definitions() { } - @SuppressWarnings("unchecked") public static Map> dataFormatDefinition() { Map> definitions = loadDefinitionFromJaxbIndex("org.apache.camel.model.dataformat"); return Collections.unmodifiableMap(definitions); } - @SuppressWarnings("unchecked") public static Map> expressionDefinition() { Map> definitions = loadDefinitionFromJaxbIndex("org.apache.camel.model.language"); diff --git a/camel-knative-http/src/main/java/org/apache/camel/component/knative/http/KnativeHttpComponent.java b/camel-knative-http/src/main/java/org/apache/camel/component/knative/http/KnativeHttpComponent.java index 0026ab3ac..b2833b46d 100644 --- a/camel-knative-http/src/main/java/org/apache/camel/component/knative/http/KnativeHttpComponent.java +++ b/camel-knative-http/src/main/java/org/apache/camel/component/knative/http/KnativeHttpComponent.java @@ -189,7 +189,6 @@ private boolean isHttpMethodAllowed(HttpRequest request, String method) { return getHandler(request, method) != null; } - @SuppressWarnings("unchecked") private HttpServerChannelHandler getHandler(HttpRequest request, String method) { HttpServerChannelHandler answer = null; diff --git a/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeEnvironment.java b/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeEnvironment.java index 14e7b5123..19c11afbf 100644 --- a/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeEnvironment.java +++ b/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeEnvironment.java @@ -78,7 +78,6 @@ public KnativeServiceDefinition lookupServiceOrDefault(Knative.Type type, String // // ************************ - @SuppressWarnings("unchecked") private Optional lookup(Knative.Type type, String name) { final String contextPath = StringHelper.after(name, "/"); final String serviceName = (contextPath == null) ? name : StringHelper.before(name, "/"); @@ -177,7 +176,6 @@ public static KnativeEnvironment mandatoryLoadFromResource(CamelContext context, // // ************************ - @SuppressWarnings("unchecked") public static final class KnativeServiceDefinition extends DefaultServiceDefinition { @JsonCreator public KnativeServiceDefinition(