diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java index 5c025eefaf4..57247eb836c 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java @@ -852,9 +852,6 @@ public class MvcUriComponentsBuilder { this.controllerType = controllerType; this.method = method; this.argumentValues = new Object[method.getParameterCount()]; - for (int i = 0; i < this.argumentValues.length; i++) { - this.argumentValues[i] = null; - } } private static String getPath() {