Skip to content

Commit

Permalink
Removed unncessecary erasure resolution due to new equality rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Dec 21, 2015
1 parent 9fb7d8d commit 88ceef9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1520,10 +1520,10 @@ public Set<MethodDescription> getCandidates() {
public Entry<U> extendBy(MethodDescription methodDescription, Harmonizer<U> harmonizer) { public Entry<U> extendBy(MethodDescription methodDescription, Harmonizer<U> harmonizer) {
Harmonized<U> key = this.key.extend(methodDescription.asDefined(), harmonizer); Harmonized<U> key = this.key.extend(methodDescription.asDefined(), harmonizer);
LinkedHashSet<MethodDescription> methodDescriptions = new LinkedHashSet<MethodDescription>(this.methodDescriptions.size() + 1); LinkedHashSet<MethodDescription> methodDescriptions = new LinkedHashSet<MethodDescription>(this.methodDescriptions.size() + 1);
TypeDescription declaringType = methodDescription.getDeclaringType().asErasure(); TypeDefinition declaringType = methodDescription.getDeclaringType();
boolean bridge = methodDescription.isBridge(); boolean bridge = methodDescription.isBridge();
for (MethodDescription extendedMethod : this.methodDescriptions) { for (MethodDescription extendedMethod : this.methodDescriptions) {
if (extendedMethod.getDeclaringType().asErasure().equals(declaringType)) { if (extendedMethod.getDeclaringType().equals(declaringType)) {
if (extendedMethod.isBridge() ^ bridge) { if (extendedMethod.isBridge() ^ bridge) {
methodDescriptions.add(bridge ? extendedMethod : methodDescription); methodDescriptions.add(bridge ? extendedMethod : methodDescription);
} else { } else {
Expand Down

0 comments on commit 88ceef9

Please sign in to comment.