Refactoring: Remove not-null warnings

This commit is contained in:
Nikolay Krasko
2013-06-11 18:47:02 +04:00
parent b14a5f3ea1
commit ca1c13054a
@@ -155,20 +155,18 @@ public class FqName extends FqNameBase {
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
// generated by Idea
if (this == o) return true; if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false; if (o == null || getClass() != o.getClass()) return false;
FqName that = (FqName) o; FqName otherFqName = (FqName) o;
if (fqName != null ? !fqName.equals(that.fqName) : that.fqName != null) return false; if (!fqName.equals(otherFqName.fqName)) return false;
return true; return true;
} }
@Override @Override
public int hashCode() { public int hashCode() {
// generated by Idea return fqName.hashCode();
return fqName != null ? fqName.hashCode() : 0;
} }
} }