diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-14 15:37:56 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-14 15:38:25 +0100 |
commit | 60e2dc0e768ac74bfd8bdedaa90157e1082c05b0 (patch) | |
tree | d96868c81c6038557e5a2b4930cb285ee05bf805 /sonar-java-api | |
parent | e4a24c9ae7960c079d6463c67a9c6b2ce3c53dec (diff) | |
download | sonarqube-60e2dc0e768ac74bfd8bdedaa90157e1082c05b0.tar.gz sonarqube-60e2dc0e768ac74bfd8bdedaa90157e1082c05b0.zip |
API: rename BlockUnit to Method
Diffstat (limited to 'sonar-java-api')
-rw-r--r-- | sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java b/sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java index 65c478a49b7..6b1d9eebbd5 100644 --- a/sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java +++ b/sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java @@ -25,7 +25,7 @@ import org.sonar.api.resources.*; /** * @since 2.6 */ -public final class JavaMethod extends BlockUnit { +public final class JavaMethod extends Method { public static final String QUALIFIER = Qualifiers.METHOD; @@ -92,20 +92,6 @@ public final class JavaMethod extends BlockUnit { } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - JavaMethod that = (JavaMethod) o; - return getKey().equals(that.getKey()); - } - - @Override - public int hashCode() { - return getKey().hashCode(); - } - - @Override public String toString() { return getKey(); } |