DATACMNS-1304 - PropertyPath now supports properties with all uppercase endings.
Original pull request: #289.
This commit is contained in:
committed by
Oliver Gierke
parent
fc2135df3d
commit
1da969db0a
@@ -42,6 +42,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Oliver Gierke
|
||||
* @author Christoph Strobl
|
||||
* @author Mark Paluch
|
||||
* @author Mariusz Mączkowski
|
||||
*/
|
||||
@EqualsAndHashCode
|
||||
public class PropertyPath implements Streamable<PropertyPath> {
|
||||
@@ -401,7 +402,7 @@ public class PropertyPath implements Streamable<PropertyPath> {
|
||||
exception = e;
|
||||
}
|
||||
|
||||
Pattern pattern = Pattern.compile("\\p{Lu}+\\p{Ll}*$");
|
||||
Pattern pattern = Pattern.compile("\\p{Lu}\\p{Ll}*$");
|
||||
Matcher matcher = pattern.matcher(source);
|
||||
|
||||
if (matcher.find() && matcher.start() != 0) {
|
||||
|
||||
Reference in New Issue
Block a user