From af13580fd52be266df4e10b058c134bf05373d9f Mon Sep 17 00:00:00 2001 From: stsypanov Date: Thu, 31 Jan 2019 15:30:20 +0200 Subject: [PATCH] Remove unnecessary array initialization --- .../servlet/mvc/method/annotation/MvcUriComponentsBuilder.java | 3 --- 1 file changed, 3 deletions(-) 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() {