#306 - Renamed type references types to allow more concise usage.
Renamed the Resource, Resources and PagedResources types in TypeReferences to *Type so that new TypeReferences.Resources<User>() {} now becomes new ResourcesType<User>() {}.
Prior to this change a static import of TypeReferences would've cause the actual Resource types to be fully qualified.
This commit is contained in:
@@ -40,7 +40,8 @@ public class TypeReferences {
|
||||
* @author Oliver Gierke
|
||||
* @since 0.17
|
||||
*/
|
||||
public static class Resource<T> extends SyntheticParameterizedTypeReference<org.springframework.hateoas.Resource<T>> {}
|
||||
public static class ResourceType<T> extends
|
||||
SyntheticParameterizedTypeReference<org.springframework.hateoas.Resource<T>> {}
|
||||
|
||||
/**
|
||||
* A {@link ParameterizedTypeReference} to return a {@link org.springframework.hateoas.Resources} of some type.
|
||||
@@ -48,7 +49,7 @@ public class TypeReferences {
|
||||
* @author Oliver Gierke
|
||||
* @since 0.17
|
||||
*/
|
||||
public static class Resources<T> extends
|
||||
public static class ResourcesType<T> extends
|
||||
SyntheticParameterizedTypeReference<org.springframework.hateoas.Resources<T>> {}
|
||||
|
||||
/**
|
||||
@@ -57,7 +58,7 @@ public class TypeReferences {
|
||||
* @author Oliver Gierke
|
||||
* @since 0.17
|
||||
*/
|
||||
public static class PagedResources<T> extends
|
||||
public static class PagedResourcesType<T> extends
|
||||
SyntheticParameterizedTypeReference<org.springframework.hateoas.PagedResources<T>> {}
|
||||
|
||||
/**
|
||||
@@ -71,7 +72,7 @@ public class TypeReferences {
|
||||
|
||||
private final Type type;
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
@SuppressWarnings({ "rawtypes", "deprecation" })
|
||||
protected SyntheticParameterizedTypeReference() {
|
||||
|
||||
Class<? extends SyntheticParameterizedTypeReference> foo = getClass();
|
||||
|
||||
Reference in New Issue
Block a user