#603 - Fix typos
This commit is contained in:
committed by
Greg Turnquist
parent
6d86feb120
commit
82fb6ef9d2
@@ -85,7 +85,7 @@ public class Link implements Serializable {
|
||||
*/
|
||||
public Link(UriTemplate template, String rel) {
|
||||
|
||||
Assert.notNull(template, "UriTempalte must not be null!");
|
||||
Assert.notNull(template, "UriTemplate must not be null!");
|
||||
Assert.hasText(rel, "Rel must not be null or empty!");
|
||||
|
||||
this.template = template;
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.util.Map;
|
||||
public interface LinkBuilderFactory<T extends LinkBuilder> {
|
||||
|
||||
/**
|
||||
* Creates a new {@link LinkBuilder} with a base of the mapping annotated to the given target clas (controller,
|
||||
* Creates a new {@link LinkBuilder} with a base of the mapping annotated to the given target class (controller,
|
||||
* service, etc.).
|
||||
*
|
||||
* @param target must not be {@literal null}.
|
||||
|
||||
@@ -126,11 +126,10 @@ public class Links implements Iterable<Link> {
|
||||
}
|
||||
|
||||
return new Links(links);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the {@link Links} containter is empty.
|
||||
* Returns whether the {@link Links} container is empty.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -199,7 +199,7 @@ public class PagedResources<T> extends Resources<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new {@link PageMetadata} from the given size, numer and total elements.
|
||||
* Creates a new {@link PageMetadata} from the given size, number and total elements.
|
||||
*
|
||||
* @param size the size of the page
|
||||
* @param number the number of the page
|
||||
|
||||
@@ -50,7 +50,7 @@ public interface CurieProvider {
|
||||
String getNamespacedRelFor(String rel);
|
||||
|
||||
/**
|
||||
* Returns an object to render as the base curie information. Implementations have to make sure, the retunred
|
||||
* Returns an object to render as the base curie information. Implementations have to make sure, the returned
|
||||
* instances renders as defined in the spec.
|
||||
*
|
||||
* @param links the {@link Links} that have been added to the response so far.
|
||||
|
||||
@@ -136,7 +136,7 @@ class AnnotatedParametersParameterAccessor {
|
||||
private final MethodParameter parameter;
|
||||
private final Object value;
|
||||
private final AnnotationAttribute attribute;
|
||||
private final TypeDescriptor parameterTypeDecsriptor;
|
||||
private final TypeDescriptor parameterTypeDescriptor;
|
||||
|
||||
/**
|
||||
* Creates a new {@link BoundMethodParameter}
|
||||
@@ -152,7 +152,7 @@ class AnnotatedParametersParameterAccessor {
|
||||
this.parameter = parameter;
|
||||
this.value = value;
|
||||
this.attribute = attribute;
|
||||
this.parameterTypeDecsriptor = TypeDescriptor.nested(parameter, 0);
|
||||
this.parameterTypeDescriptor = TypeDescriptor.nested(parameter, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -189,7 +189,7 @@ class AnnotatedParametersParameterAccessor {
|
||||
*/
|
||||
public String asString() {
|
||||
return value == null ? null
|
||||
: (String) CONVERSION_SERVICE.convert(value, parameterTypeDecsriptor, STRING_DESCRIPTOR);
|
||||
: (String) CONVERSION_SERVICE.convert(value, parameterTypeDescriptor, STRING_DESCRIPTOR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -62,7 +62,7 @@ public class TypeReferences {
|
||||
SyntheticParameterizedTypeReference<org.springframework.hateoas.PagedResources<T>> {}
|
||||
|
||||
/**
|
||||
* Special {@link ParameterizedTypeReference} to customize the generic type detection and eventually return a sythetic
|
||||
* Special {@link ParameterizedTypeReference} to customize the generic type detection and eventually return a synthetic
|
||||
* {@link ParameterizedType} to represent the resource type along side its generic parameter.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
@@ -84,7 +84,7 @@ public class TypeReferences {
|
||||
Type type = parameterizedTypeReferenceSubclass.getGenericSuperclass();
|
||||
Assert.isInstanceOf(ParameterizedType.class, type);
|
||||
ParameterizedType parameterizedType = (ParameterizedType) type;
|
||||
Assert.isTrue(parameterizedType.getActualTypeArguments().length == 1, String.format("Type must have exactly one gerneric type argument but has %s.", parameterizedType.getActualTypeArguments().length));
|
||||
Assert.isTrue(parameterizedType.getActualTypeArguments().length == 1, String.format("Type must have exactly one generic type argument but has %s.", parameterizedType.getActualTypeArguments().length));
|
||||
|
||||
Class<?> resourceType = GenericTypeResolver.resolveType(parameterizedType.getActualTypeArguments()[0],
|
||||
new HashMap<TypeVariable, Type>());
|
||||
|
||||
Reference in New Issue
Block a user