diff --git a/processor/src/main/java/org/mapstruct/ap/internal/model/source/SourceMethod.java b/processor/src/main/java/org/mapstruct/ap/internal/model/source/SourceMethod.java index 9b1ef4aa0..32bd540f1 100644 --- a/processor/src/main/java/org/mapstruct/ap/internal/model/source/SourceMethod.java +++ b/processor/src/main/java/org/mapstruct/ap/internal/model/source/SourceMethod.java @@ -15,7 +15,6 @@ import javax.lang.model.element.Modifier; import javax.lang.model.util.Types; import org.mapstruct.ap.internal.model.common.Accessibility; -import org.mapstruct.ap.internal.model.common.BuilderType; import org.mapstruct.ap.internal.model.common.Parameter; import org.mapstruct.ap.internal.model.common.Type; import org.mapstruct.ap.internal.model.common.TypeFactory; @@ -77,7 +76,6 @@ public class SourceMethod implements Method { private ExecutableElement executable; private List parameters; private Type returnType = null; - private BuilderType builderType = null; private List exceptionTypes; private Set mappings; private IterableMapping iterableMapping = null; @@ -290,12 +288,6 @@ public class SourceMethod implements Method { && getResultType().isAssignableTo( first( method.getSourceParameters() ).getType() ); } - public boolean isSame(SourceMethod method) { - return getSourceParameters().size() == 1 && method.getSourceParameters().size() == 1 - && equals( first( getSourceParameters() ).getType(), first( method.getSourceParameters() ).getType() ) - && equals( getResultType(), method.getResultType() ); - } - public boolean canInheritFrom(SourceMethod method) { return method.getDeclaringMapper() == null && method.isAbstract() @@ -373,10 +365,6 @@ public class SourceMethod implements Method { return isValueMapping; } - private boolean equals(Object o1, Object o2) { - return (o1 == null && o2 == null) || (o1 != null) && o1.equals( o2 ); - } - @Override public String toString() { StringBuilder sb = new StringBuilder( returnType.toString() );