Add the "@Override" annotation. 89/96289/2
authoranushadasari <danush10@in.ibm.com>
Thu, 26 Sep 2019 16:22:36 +0000 (21:52 +0530)
committerIttay Stern <ittay.stern@att.com>
Mon, 7 Oct 2019 12:52:02 +0000 (12:52 +0000)
Using the @Override annotation is useful for two reasons :
It elicits a warning from the compiler if the annotated method doesn't actually override anything, as in the case of a misspelling.
It improves the readability of the source code by making it obvious that methods are overridden.

Issue-ID: VID-612
Change-Id: I90f07b6da5934fcba0c6d4106a75684438d8bb4b
Signed-off-by: anushadasari <danush10@in.ibm.com>
vid-app-common/src/main/java/org/onap/vid/model/VNFDao.java

index 8370f91..cb7a0fc 100644 (file)
@@ -41,6 +41,7 @@ public class VNFDao extends DomainVo {
     @GeneratedValue(strategy = GenerationType.IDENTITY)
     @Column(name = "VNF_DB_ID")
     @JsonIgnore
+    @Override
     public Long getId() {
         return id;
     }