From ab92f4ec859413b2d3612068dfb21d741fb389a3 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 6 May 2008 13:52:12 +0000 Subject: Code cleanup: add @Override annotations, remove unused imports, remove dead code and add @Deprecated annotations. --- src/main/java/com/amazon/carbonado/synthetic/SyntheticProperty.java | 3 +++ .../java/com/amazon/carbonado/synthetic/SyntheticStorableBuilder.java | 2 ++ 2 files changed, 5 insertions(+) (limited to 'src/main/java/com/amazon/carbonado/synthetic') diff --git a/src/main/java/com/amazon/carbonado/synthetic/SyntheticProperty.java b/src/main/java/com/amazon/carbonado/synthetic/SyntheticProperty.java index d719fdd..7a89468 100644 --- a/src/main/java/com/amazon/carbonado/synthetic/SyntheticProperty.java +++ b/src/main/java/com/amazon/carbonado/synthetic/SyntheticProperty.java @@ -218,6 +218,7 @@ public class SyntheticProperty implements Comparable { return mName.compareTo(otherProp.mName); } + @Override public boolean equals(Object o) { if (this == o) { return true; @@ -244,6 +245,7 @@ public class SyntheticProperty implements Comparable { return true; } + @Override public int hashCode() { int result; result = (mType != null ? mType.hashCode() : 0); @@ -260,6 +262,7 @@ public class SyntheticProperty implements Comparable { return name; } + @Override public String toString() { return mName+'|'+ (mIsNullable?"NULL|":"")+ diff --git a/src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableBuilder.java b/src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableBuilder.java index 2a58f93..428f91f 100644 --- a/src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableBuilder.java +++ b/src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableBuilder.java @@ -486,6 +486,7 @@ public class SyntheticStorableBuilder if (annotationDescs != null && annotationDescs.size() > 0) { for (String desc : annotationDescs) { new AnnotationDescParser(desc) { + @Override protected Annotation buildRootAnnotation(TypeDesc rootAnnotationType) { return mi.addRuntimeVisibleAnnotation(rootAnnotationType); } @@ -520,6 +521,7 @@ public class SyntheticStorableBuilder return mPropertyList; } + @Override public String toString() { return mName + mPropertyList.toString(); } -- cgit v1.2.3