diff --git a/processor/src/main/java/org/mapstruct/ap/conversion/SimpleConversion.java b/processor/src/main/java/org/mapstruct/ap/conversion/SimpleConversion.java index f9f07fde2..7f98a2e4b 100644 --- a/processor/src/main/java/org/mapstruct/ap/conversion/SimpleConversion.java +++ b/processor/src/main/java/org/mapstruct/ap/conversion/SimpleConversion.java @@ -19,7 +19,6 @@ package org.mapstruct.ap.conversion; import java.util.Collections; -import java.util.List; import java.util.Set; import org.mapstruct.ap.model.TypeConversion; @@ -27,8 +26,7 @@ import org.mapstruct.ap.model.common.ConversionContext; import org.mapstruct.ap.model.common.Type; /** - * Base class for {@link ConversionProvider}s creating {@link TypeConversion}s - * which don't require any type imports nor declare any exception types. + * Base class for {@link ConversionProvider}s creating {@link TypeConversion}s which don't declare any exception types. * * @author Gunnar Morling */ @@ -38,7 +36,7 @@ public abstract class SimpleConversion implements ConversionProvider { public TypeConversion to(String sourceReference, ConversionContext conversionContext) { return new TypeConversion( getToConversionImportTypes( conversionContext ), - getToConversionExceptionTypes( conversionContext ), + Collections. emptyList(), getToConversionString( sourceReference, conversionContext ) ); } @@ -47,19 +45,11 @@ public abstract class SimpleConversion implements ConversionProvider { public TypeConversion from(String targetReference, ConversionContext conversionContext) { return new TypeConversion( getFromConversionImportTypes( conversionContext ), - getFromConversionExceptionTypes( conversionContext ), + Collections. emptyList(), getFromConversionString( targetReference, conversionContext ) ); } - /** - * @param conversionContext the conversion context - * @return exception types required in the from-conversion - */ - protected List getFromConversionExceptionTypes(ConversionContext conversionContext) { - return Collections. emptyList(); - } - /** * @param conversionContext the conversion context * @return conversion types required in the from-conversion @@ -68,14 +58,6 @@ public abstract class SimpleConversion implements ConversionProvider { return Collections. emptySet(); } - /** - * @param conversionContext the conversion context - * @return exception types required in the to-conversion - */ - protected List getToConversionExceptionTypes(ConversionContext conversionContext) { - return Collections. emptyList(); - } - /** * @param conversionContext the conversion context * @return conversion types required in the to-conversion