You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/04/11 13:08:43 UTC
[groovy] branch master updated: Add `@Override` to method
declaration
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 7aa419f Add `@Override` to method declaration
7aa419f is described below
commit 7aa419fae34850cf75218b49a4ba7716debd1ae4
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Apr 11 21:08:19 2020 +0800
Add `@Override` to method declaration
---
src/main/java/org/codehaus/groovy/reflection/CachedClass.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/org/codehaus/groovy/reflection/CachedClass.java b/src/main/java/org/codehaus/groovy/reflection/CachedClass.java
index c4740d8..3fe83c7 100644
--- a/src/main/java/org/codehaus/groovy/reflection/CachedClass.java
+++ b/src/main/java/org/codehaus/groovy/reflection/CachedClass.java
@@ -292,6 +292,7 @@ public class CachedClass {
return distance;
}
+ @Override
public int hashCode() {
if (hashCode == 0) {
hashCode = super.hashCode();
@@ -486,6 +487,7 @@ public class CachedClass {
public static class CachedMethodComparatorWithString implements Comparator {
public static final Comparator INSTANCE = new CachedMethodComparatorWithString();
+ @Override
public int compare(Object o1, Object o2) {
if (o1 instanceof CachedMethod)
return ((CachedMethod) o1).getName().compareTo((String) o2);