diff --git a/src/main/java/org/springframework/hateoas/Link.java b/src/main/java/org/springframework/hateoas/Link.java index 11ac811d..44d69fa4 100755 --- a/src/main/java/org/springframework/hateoas/Link.java +++ b/src/main/java/org/springframework/hateoas/Link.java @@ -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; diff --git a/src/main/java/org/springframework/hateoas/LinkBuilderFactory.java b/src/main/java/org/springframework/hateoas/LinkBuilderFactory.java index d9481ba0..84cde679 100644 --- a/src/main/java/org/springframework/hateoas/LinkBuilderFactory.java +++ b/src/main/java/org/springframework/hateoas/LinkBuilderFactory.java @@ -27,7 +27,7 @@ import java.util.Map; public interface LinkBuilderFactory { /** - * 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}. diff --git a/src/main/java/org/springframework/hateoas/Links.java b/src/main/java/org/springframework/hateoas/Links.java index f58554b4..df459f82 100644 --- a/src/main/java/org/springframework/hateoas/Links.java +++ b/src/main/java/org/springframework/hateoas/Links.java @@ -126,11 +126,10 @@ public class Links implements Iterable { } return new Links(links); - } /** - * Returns whether the {@link Links} containter is empty. + * Returns whether the {@link Links} container is empty. * * @return */ diff --git a/src/main/java/org/springframework/hateoas/PagedResources.java b/src/main/java/org/springframework/hateoas/PagedResources.java index a2116c3e..3dc59c29 100644 --- a/src/main/java/org/springframework/hateoas/PagedResources.java +++ b/src/main/java/org/springframework/hateoas/PagedResources.java @@ -199,7 +199,7 @@ public class PagedResources extends Resources { } /** - * 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 diff --git a/src/main/java/org/springframework/hateoas/hal/CurieProvider.java b/src/main/java/org/springframework/hateoas/hal/CurieProvider.java index f552567d..e06916c4 100644 --- a/src/main/java/org/springframework/hateoas/hal/CurieProvider.java +++ b/src/main/java/org/springframework/hateoas/hal/CurieProvider.java @@ -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. diff --git a/src/main/java/org/springframework/hateoas/mvc/AnnotatedParametersParameterAccessor.java b/src/main/java/org/springframework/hateoas/mvc/AnnotatedParametersParameterAccessor.java index cf4428d9..45ed083b 100644 --- a/src/main/java/org/springframework/hateoas/mvc/AnnotatedParametersParameterAccessor.java +++ b/src/main/java/org/springframework/hateoas/mvc/AnnotatedParametersParameterAccessor.java @@ -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); } /** diff --git a/src/main/java/org/springframework/hateoas/mvc/TypeReferences.java b/src/main/java/org/springframework/hateoas/mvc/TypeReferences.java index 9bd258e7..44bdc109 100644 --- a/src/main/java/org/springframework/hateoas/mvc/TypeReferences.java +++ b/src/main/java/org/springframework/hateoas/mvc/TypeReferences.java @@ -62,7 +62,7 @@ public class TypeReferences { SyntheticParameterizedTypeReference> {} /** - * 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());