#227 Formatting; Getting rid of some warnings

This commit is contained in:
Gunnar Morling 2014-06-24 22:15:47 +02:00
parent 8b45909a25
commit c550af2529
5 changed files with 18 additions and 18 deletions

View File

@ -20,6 +20,7 @@ package org.mapstruct.ap.model.assignment;
import java.util.HashSet;
import java.util.Set;
import org.mapstruct.ap.model.Assignment;
import org.mapstruct.ap.model.common.Type;

View File

@ -20,6 +20,7 @@ package org.mapstruct.ap.model.assignment;
import java.util.HashSet;
import java.util.Set;
import org.mapstruct.ap.model.Assignment;
import org.mapstruct.ap.model.common.Type;

View File

@ -22,11 +22,12 @@ import java.util.ArrayList;
import java.util.Collection;
/**
*
* @author Sjaak Derksen
*/
public class TestList<E> extends ArrayList<E> {
private static final long serialVersionUID = 1L;
private static boolean addAllCalled = false;
public static boolean isAddAllCalled() {
@ -38,9 +39,8 @@ public class TestList<E> extends ArrayList<E> {
}
@Override
public boolean addAll( Collection c ) {
public boolean addAll(Collection<? extends E> c) {
addAllCalled = true;
return super.addAll( c );
}
}

View File

@ -22,11 +22,12 @@ import java.util.HashMap;
import java.util.Map;
/**
*
* @author Sjaak Derksen
*/
public class TestMap<K, V> extends HashMap<K, V> {
private static final long serialVersionUID = 1L;
private static boolean puttAllCalled = false;
public static boolean isPuttAllCalled() {
@ -38,11 +39,8 @@ public class TestMap<K, V> extends HashMap<K, V> {
}
@Override
public void putAll( Map m ) {
public void putAll(Map<? extends K, ? extends V> m) {
puttAllCalled = true;
super.putAll( m ); //To change body of generated methods, choose Tools | Templates.
super.putAll( m );
}
}