Skip to content

Commit ace0dc7

Browse files
committed
Remove duplicate "property" in PropertyCacheKey.toString()
Closes gh-26237
1 parent 52806cd commit ace0dc7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectivePropertyAccessor.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -46,7 +46,7 @@
4646

4747
/**
4848
* A powerful {@link PropertyAccessor} that uses reflection to access properties
49-
* for reading and possibly also for writing.
49+
* for reading and possibly also for writing on a target instance.
5050
*
5151
* <p>A property can be referenced through a public getter method (when being read)
5252
* or a public setter method (when being written), and also as a public field.
@@ -96,8 +96,8 @@ public ReflectivePropertyAccessor() {
9696
}
9797

9898
/**
99-
* Create a new property accessor for reading and possibly writing.
100-
* @param allowWrite whether to also allow for write operations
99+
* Create a new property accessor for reading and possibly also writing.
100+
* @param allowWrite whether to allow write operations on a target instance
101101
* @since 4.3.15
102102
* @see #canWrite
103103
*/
@@ -615,8 +615,8 @@ public int hashCode() {
615615

616616
@Override
617617
public String toString() {
618-
return "CacheKey [clazz=" + this.clazz.getName() + ", property=" + this.property + ", " +
619-
this.property + ", targetIsClass=" + this.targetIsClass + "]";
618+
return "PropertyCacheKey [clazz=" + this.clazz.getName() + ", property=" + this.property +
619+
", targetIsClass=" + this.targetIsClass + "]";
620620
}
621621

622622
@Override
@@ -640,6 +640,9 @@ public int compareTo(PropertyCacheKey other) {
640640
*/
641641
public static class OptimalPropertyAccessor implements CompilablePropertyAccessor {
642642

643+
/**
644+
* The member being accessed.
645+
*/
643646
public final Member member;
644647

645648
private final TypeDescriptor typeDescriptor;

0 commit comments

Comments
 (0)