fixed sonar issues in CachedDataSourceFactory 50/74250/1
authorSandeep J <sandeejh@in.ibm.com>
Wed, 5 Dec 2018 10:46:59 +0000 (16:16 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Wed, 5 Dec 2018 10:47:43 +0000 (16:17 +0530)
removed unnecessary cast to object

Issue-ID: CCSDK-525
Change-Id: Iccd4430cdbbadfabbdc21820c1f0f962b7635444
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/CachedDataSourceFactory.java

index 296fe70..15aa7a1 100644 (file)
@@ -4,6 +4,8 @@
  * ================================================================================
  * Copyright (C) 2016 - 2017 ONAP
  * ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -38,7 +40,7 @@ public class CachedDataSourceFactory {
                if(config instanceof JDBCConfiguration)
                        return JdbcDBCachedDataSource.createInstance(config);
 
-               return (CachedDataSource)null;
+               return null;
        }
 
 }