Skip to content

Commit b1231de

Browse files
committed
Fix formatting
See gh-21855
1 parent 6899624 commit b1231de

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -958,21 +958,24 @@ private PropertyTokenHolder getPropertyNameTokens(String propertyName) {
958958
return tokens;
959959
}
960960

961-
private static int getPropertyNameKeyEnd(String propertyName, int startIndex) {
961+
private int getPropertyNameKeyEnd(String propertyName, int startIndex) {
962962
int unclosedPrefixes = 0;
963963
int length = propertyName.length();
964964
for (int i = startIndex; i < length; i++) {
965965
switch (propertyName.charAt(i)) {
966966
case PropertyAccessor.PROPERTY_KEY_PREFIX_CHAR:
967-
// The property name contains opening prefix(es)
967+
// The property name contains opening prefix(es)...
968968
unclosedPrefixes++;
969969
break;
970970
case PropertyAccessor.PROPERTY_KEY_SUFFIX_CHAR:
971971
if (unclosedPrefixes == 0) {
972-
// No unclosed prefix(es) in the property name (left), this is the suffix we are looking for
972+
// No unclosed prefix(es) in the property name (left) ->
973+
// this is the suffix we are looking for.
973974
return i;
974-
} else {
975-
// This suffix does not close the initial prefix, but one that occurred within the property name
975+
}
976+
else {
977+
// This suffix does not close the initial prefix but rather
978+
// just one that occurred within the property name.
976979
unclosedPrefixes--;
977980
}
978981
break;
@@ -981,6 +984,7 @@ private static int getPropertyNameKeyEnd(String propertyName, int startIndex) {
981984
return -1;
982985
}
983986

987+
984988
@Override
985989
public String toString() {
986990
StringBuilder sb = new StringBuilder(getClass().getName());

0 commit comments

Comments
 (0)