This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit 229bea23ccf5ebb2449add0b5f6de06de2dca3c5
Author: lburgazzoli <lburgazz...@gmail.com>
AuthorDate: Tue Jul 9 23:23:43 2019 +0200

    chore(build): enable -Xlint:unchecked
---
 .../src/main/java/org/apache/camel/k/yaml/parser/StepParserSupport.java | 2 ++
 pom.xml                                                                 | 1 +
 2 files changed, 3 insertions(+)

diff --git 
a/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/parser/StepParserSupport.java
 
b/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/parser/StepParserSupport.java
index 6f76b49..c6d5f0c 100644
--- 
a/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/parser/StepParserSupport.java
+++ 
b/camel-k-runtime-yaml/src/main/java/org/apache/camel/k/yaml/parser/StepParserSupport.java
@@ -31,6 +31,7 @@ public final class StepParserSupport {
     private StepParserSupport() {
     }
 
+    @SuppressWarnings("unchecked")
     public static <T extends ProcessorDefinition<?>, I> T 
adaptProcessorToSuper(CamelContext context, I instance) {
         ObjectHelper.notNull(context, "camel context");
         ObjectHelper.notNull(instance, "instance");
@@ -38,6 +39,7 @@ public final class StepParserSupport {
         return adaptProcessor(context, 
(Class<T>)instance.getClass().getSuperclass(), instance);
     }
 
+    @SuppressWarnings("unchecked")
     public static <T extends ProcessorDefinition<?>, I> T 
adaptProcessor(CamelContext context, Class<T> type, I instance) {
         ObjectHelper.notNull(context, "camel context");
         ObjectHelper.notNull(type, "type");
diff --git a/pom.xml b/pom.xml
index 778dafe..38bc52c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -108,6 +108,7 @@
                         <target>1.8</target>
                         <compilerArgs>
                             <arg>-Xlint:deprecation</arg>
+                            <arg>-Xlint:unchecked</arg>
                         </compilerArgs>
                     </configuration>
                 </plugin>

Reply via email to