From 5fb289acf743149d7acae3d140b6bb56f729e838 Mon Sep 17 00:00:00 2001 From: stsypanov Date: Sat, 23 Nov 2019 23:19:42 +0200 Subject: [PATCH] Hoist constant byte[] out of loop --- .../java/org/springframework/beans/ExtendedBeanInfo.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java b/spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java index 13320a607df9..3639949dbcbe 100644 --- a/spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java +++ b/spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java @@ -208,7 +208,7 @@ private PropertyDescriptor findExistingPropertyDescriptor(String propertyName, C } private String propertyNameFor(Method method) { - return Introspector.decapitalize(method.getName().substring(3, method.getName().length())); + return Introspector.decapitalize(method.getName().substring(3)); } @@ -534,11 +534,13 @@ static class PropertyDescriptorComparator implements Comparator