Sonar major issue 59/57259/1
authorBharathS24 <BS00493532@techmahindra.com>
Tue, 24 Jul 2018 07:21:13 +0000 (12:51 +0530)
committerBharathS24 <BS00493532@techmahindra.com>
Tue, 24 Jul 2018 07:21:32 +0000 (12:51 +0530)
Remove this Nonnull annotation to honor the overridden method's contract

Sonar Link : https://sonar.onap.org/issues?myIssues=true&open=AWFSduchof9FJ6jfXJfh&resolved=false

Location :  src/main/java/org/onap/dcae/apod/analytics/cdap/plugins/utils/CDAPPluginUtils.java:L56

Change-Id: I43b53374e8a33fb196438826934e14a7d3d2ce43
Issue-ID: DCAEGEN2-631
Signed-off-by: BharathS24 <BS00493532@techmahindra.com>
dcae-analytics-cdap-plugins/src/main/java/org/onap/dcae/apod/analytics/cdap/plugins/utils/CDAPPluginUtils.java

index 5f622cd..657f0af 100644 (file)
@@ -53,7 +53,7 @@ public abstract class CDAPPluginUtils extends AnalyticsModelJsonUtils {
 
     public static final Function<Schema, Schema.Type> SCHEMA_TO_TYPE_FUNCTION = new Function<Schema, Schema.Type>() {
         @Override
-        public Schema.Type apply(@Nonnull Schema schema) {
+        public Schema.Type apply(Schema schema) {
             return schema.getType();
         }
     };