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(