summaryrefslogtreecommitdiff
path: root/java/lang/invoke/MethodType.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/lang/invoke/MethodType.java')
-rw-r--r--java/lang/invoke/MethodType.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/java/lang/invoke/MethodType.java b/java/lang/invoke/MethodType.java
index dd58cb09c..4d021c711 100644
--- a/java/lang/invoke/MethodType.java
+++ b/java/lang/invoke/MethodType.java
@@ -244,9 +244,17 @@ public final class MethodType
return ptypes.toArray(new Class<?>[0]);
}
- public boolean equals(Object object)
+ public boolean equals(Object obj)
{
- throw new UnsupportedOperationException();
+ if (this == obj)
+ return true;
+
+ if (!(obj instanceof MethodType))
+ return false;
+
+ MethodType mh = (MethodType) obj;
+
+ return rtype.equals(mh.rtype) && ptypes.equals(mh.ptypes);
}
public int hashCode()