diff --git a/processor/src/main/java/org/mapstruct/ap/internal/model/source/ForgedMethod.java b/processor/src/main/java/org/mapstruct/ap/internal/model/source/ForgedMethod.java index d8c335d4d..163cb4080 100644 --- a/processor/src/main/java/org/mapstruct/ap/internal/model/source/ForgedMethod.java +++ b/processor/src/main/java/org/mapstruct/ap/internal/model/source/ForgedMethod.java @@ -52,6 +52,7 @@ public class ForgedMethod implements Method { * @param name the (unique name) for this method * @param sourceType the source type * @param targetType the target type. + * @param mapperConfiguration the mapper configuration * @param positionHintElement element used to for reference to the position in the source file. */ public ForgedMethod(String name, Type sourceType, Type targetType, MapperConfiguration mapperConfiguration, diff --git a/processor/src/main/java/org/mapstruct/ap/internal/processor/AnnotationBasedComponentModelProcessor.java b/processor/src/main/java/org/mapstruct/ap/internal/processor/AnnotationBasedComponentModelProcessor.java index 1702d1d2c..812eee806 100644 --- a/processor/src/main/java/org/mapstruct/ap/internal/processor/AnnotationBasedComponentModelProcessor.java +++ b/processor/src/main/java/org/mapstruct/ap/internal/processor/AnnotationBasedComponentModelProcessor.java @@ -109,6 +109,7 @@ public abstract class AnnotationBasedComponentModelProcessor implements ModelEle /** * @param originalReference the reference to be replaced + * @param annotations the list of annotations * * @return the mapper reference replacing the original one */ @@ -127,6 +128,8 @@ public abstract class AnnotationBasedComponentModelProcessor implements ModelEle protected abstract String getComponentModelIdentifier(); /** + * @param mapper the mapper + * * @return the annotation(s) to be added at the mapper type implementation */ protected abstract List getTypeAnnotations(Mapper mapper); diff --git a/processor/src/main/java/org/mapstruct/ap/spi/AccessorNamingStrategy.java b/processor/src/main/java/org/mapstruct/ap/spi/AccessorNamingStrategy.java index 8433ae7af..7bf1888bf 100644 --- a/processor/src/main/java/org/mapstruct/ap/spi/AccessorNamingStrategy.java +++ b/processor/src/main/java/org/mapstruct/ap/spi/AccessorNamingStrategy.java @@ -30,6 +30,10 @@ public interface AccessorNamingStrategy { /** * Returns the type of the given method. + * + * @param method to be analyzed. + * + * @return the method type. */ MethodType getMethodType(ExecutableElement method); @@ -38,6 +42,10 @@ public interface AccessorNamingStrategy { *

* The default implementation will e.g. return "name" for {@code public String getName()} or {@code public void * setName(String name)}. + * + * @param getterOrSetterMethod to be analyzed. + * + * @return property name derived from the getterOrSetterMethod */ String getPropertyName(ExecutableElement getterOrSetterMethod); @@ -45,6 +53,10 @@ public interface AccessorNamingStrategy { * Returns the element name of the given adder method. *

* The default implementation will e.g. return "item" for {@code public void addItem(String item)}. + * + * @param adderMethod to be getterOrSetterMethod. + * + * @return getter name for collections */ String getElementName(ExecutableElement adderMethod); @@ -52,6 +64,10 @@ public interface AccessorNamingStrategy { * Returns the getter name of the given collection property. *

* The default implementation will e.g. return "getItems" for "items". + * + * @param property to be getterOrSetterMethod. + * + * @return getter name for collection properties */ String getCollectionGetterName(String property); }