diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2008-05-06 13:52:12 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2008-05-06 13:52:12 +0000 |
commit | ab92f4ec859413b2d3612068dfb21d741fb389a3 (patch) | |
tree | 110ab1c9c6b08bd1acf40b1ac0e3192caa38cc93 /src/main/java/com/amazon/carbonado/synthetic | |
parent | 6087388aca5eb50054732c2f606fa21165e88b75 (diff) |
Code cleanup: add @Override annotations, remove unused imports, remove dead code and add @Deprecated annotations.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/synthetic')
-rw-r--r-- | src/main/java/com/amazon/carbonado/synthetic/SyntheticProperty.java | 3 | ||||
-rw-r--r-- | src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableBuilder.java | 2 |
2 files changed, 5 insertions, 0 deletions
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<SyntheticProperty> { 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<SyntheticProperty> { return true;
}
+ @Override
public int hashCode() {
int result;
result = (mType != null ? mType.hashCode() : 0);
@@ -260,6 +262,7 @@ public class SyntheticProperty implements Comparable<SyntheticProperty> { 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();
}
|