Sonar Major fix 45/29645/2
authorPooja03 <PM00501616@techmahindra.com>
Wed, 31 Jan 2018 05:46:33 +0000 (11:16 +0530)
committerPooja03 <PM00501616@techmahindra.com>
Wed, 31 Jan 2018 05:55:48 +0000 (11:25 +0530)
Adding the @Override annotation above the createTable method signature in DCAEServiceComponentsDAO.java

Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|severities=MAJOR|rules=squid%3AS1161

Location:DCAEServiceComponentsDAO.java:L43

Change-Id: Ieca7421d424827f82dd662f8d5a097d8198a2dbe
Issue-ID: DCAEGEN2-289
Signed-off-by: Pooja03 <PM00501616@techmahindra.com>
src/main/java/org/onap/dcae/inventory/daos/DCAEServiceComponentsDAO.java

index a2d70d0..1085ac4 100644 (file)
@@ -38,6 +38,7 @@ public interface DCAEServiceComponentsDAO extends InventoryDAO {
     @SqlQuery("select exists (select * from information_schema.tables where table_name = \'dcae_service_components\')")
     Boolean checkIfTableExists();
 
+    @Override
     @SqlUpdate("create table dcae_service_components (component_id varchar not null primary key, component_type varchar not null, " +
             "component_source varchar not null, shareable integer default 0, created timestamp not null, modified timestamp not null)")
     void createTable();