Add "@Override" annotation above method signature. 05/95205/4
authoranushadasari <danush10@in.ibm.com>
Mon, 9 Sep 2019 07:07:09 +0000 (12:37 +0530)
committerIttay Stern <ittay.stern@att.com>
Tue, 24 Sep 2019 16:47:42 +0000 (16:47 +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: Ic628b85f7a3e4c08712c88298fa4620ecddce0cc
Signed-off-by: anushadasari <danush10@in.ibm.com>
vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java

index d0e212b..d77a28c 100644 (file)
@@ -35,6 +35,7 @@ public class VidWorkflow extends VidBaseEntity {
     @GeneratedValue(strategy = GenerationType.IDENTITY)
     @Column(name = "WORKFLOW_DB_ID")
     @JsonIgnore
+    @Override
     public Long getId() {
         return id;
     }