Created
December 14, 2016 16:01
-
-
Save Bunkerbewohner/f84e04def620c25ac3feec3247b4c372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.hermes.ccs.legacy.rest.patch; | |
import com.fasterxml.jackson.core.type.TypeReference; | |
import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl; | |
import java.util.List; | |
public class ListPatch<T extends List<M>, M> extends Patch<T> { | |
public ListPatch(Class<M> modelClass) { | |
super((Class<T>)((ParameterizedTypeImpl)new TypeReference<List<M>>() {}.getType()).getRawType()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment