Fix some compiler warnings.

This commit is contained in:
Andreas Gudian 2016-03-13 20:47:28 +01:00
parent c671692cd0
commit c595bd72e3
5 changed files with 1 additions and 17 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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;
}

View File

@ -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 ) {

View File

@ -27,6 +27,7 @@ import javax.lang.model.element.TypeElement;
*
*/
public class TypeHierarchyErroneousException extends RuntimeException {
private static final long serialVersionUID = 1L;
private TypeElement element;