#831 - Polishing.

Applied some recommendations provided by IntelliJ that I stumbled over while reviewing the changes.
This commit is contained in:
Jens Schauder
2019-03-11 17:04:48 +01:00
parent 40250d1738
commit bdd602aa74
13 changed files with 16 additions and 16 deletions

View File

@@ -38,7 +38,7 @@ public class UriTemplateFactory {
* @param mapping must not be {@literal null} or empty.
* @return
*/
public static UriTemplate templateFor(@Nullable String mapping) {
public static UriTemplate templateFor(String mapping) {
Assert.hasText(mapping, "Mapping must not be null or empty!");

View File

@@ -128,7 +128,7 @@ public class RepresentationModelProcessorInvoker {
}
}
return (T) invokeProcessorsFor(Object.class.cast(value), referenceType);
return (T) invokeProcessorsFor((Object) value, referenceType);
}
/**