mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
Fix some compiler warnings.
This commit is contained in:
parent
c671692cd0
commit
c595bd72e3
@ -193,8 +193,6 @@ public class Mapper extends GeneratedType {
|
||||
|
||||
/**
|
||||
* Checks if the mapper has a custom implementation that is a custom suffix of an explicit destination package.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public boolean hasCustomImplementation() {
|
||||
return customImplName || customPackage;
|
||||
|
@ -55,11 +55,6 @@ public abstract class MappingMethod extends ModelElement {
|
||||
/**
|
||||
* constructor to be overloaded when local variable names are required prior to calling this constructor. (e.g. for
|
||||
* property mappings). It is supposed to be initialized with at least the parameter names.
|
||||
*
|
||||
* @param method method
|
||||
* @param existingVariableNames existingVariableNames
|
||||
* @param beforeMappingReferences
|
||||
* @param afterMappingReferences
|
||||
*/
|
||||
protected MappingMethod(Method method, Collection<String> existingVariableNames,
|
||||
List<LifecycleCallbackMethodReference> beforeMappingReferences,
|
||||
|
@ -31,7 +31,6 @@ import java.util.Set;
|
||||
|
||||
import javax.lang.model.element.ExecutableElement;
|
||||
import javax.lang.model.type.DeclaredType;
|
||||
import javax.lang.model.type.TypeMirror;
|
||||
|
||||
import org.mapstruct.ap.internal.model.assignment.AdderWrapper;
|
||||
import org.mapstruct.ap.internal.model.assignment.ArrayCopyWrapper;
|
||||
@ -169,9 +168,6 @@ public class PropertyMapping extends ModelElement {
|
||||
// initial properties
|
||||
private String dateFormat;
|
||||
private String defaultValue;
|
||||
private List<TypeMirror> qualifiers;
|
||||
private List<String> qualifyingNames;
|
||||
private TypeMirror resultType;
|
||||
private SourceReference sourceReference;
|
||||
private SelectionParameters selectionParameters;
|
||||
|
||||
@ -181,11 +177,6 @@ public class PropertyMapping extends ModelElement {
|
||||
}
|
||||
|
||||
public PropertyMappingBuilder selectionParameters(SelectionParameters selectionParameters) {
|
||||
if ( selectionParameters != null ) {
|
||||
this.qualifiers = selectionParameters.getQualifiers();
|
||||
this.qualifyingNames = selectionParameters.getQualifyingNames();
|
||||
this.resultType = selectionParameters.getResultType();
|
||||
}
|
||||
this.selectionParameters = selectionParameters;
|
||||
return this;
|
||||
}
|
||||
|
@ -46,7 +46,6 @@ public class CreateOrUpdateSelector implements MethodSelector {
|
||||
Type sourceType, Type targetType,
|
||||
SelectionCriteria criteria) {
|
||||
|
||||
boolean isCreateMethod = mappingMethod.getMappingTargetParameter() == null;
|
||||
List<T> createCandidates = new ArrayList<T>();
|
||||
List<T> updateCandidates = new ArrayList<T>();
|
||||
for ( T method : methods ) {
|
||||
|
@ -27,6 +27,7 @@ import javax.lang.model.element.TypeElement;
|
||||
*
|
||||
*/
|
||||
public class TypeHierarchyErroneousException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private TypeElement element;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user