diff options
author | anushadasari <danush10@in.ibm.com> | 2019-09-09 12:37:09 +0530 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-09-24 16:47:42 +0000 |
commit | 0b6ca2b05ca0896ad4f9b2f4943b1fa9292e8dfb (patch) | |
tree | 82abc6232eb65a198e0ec0ce2ae4c75c4581cbab | |
parent | b067652d82e9e872638ec506469cfc03b6009e83 (diff) |
Add "@Override" annotation above method signature.
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>
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java b/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java index d0e212b98..d77a28ccd 100644 --- a/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java @@ -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; } |