Skip to content

Commit 396fdf1

Browse files
committed
Remove duplicate "property" in PropertyCacheKey.toString()
Closes gh-26237
1 parent 085825f commit 396fdf1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

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

100100
/**
101-
* Create a new property accessor for reading and possibly writing.
102-
* @param allowWrite whether to also allow for write operations
101+
* Create a new property accessor for reading and possibly also writing.
102+
* @param allowWrite whether to allow write operations on a target instance
103103
* @since 4.3.15
104104
* @see #canWrite
105105
*/
@@ -623,8 +623,8 @@ public int hashCode() {
623623

624624
@Override
625625
public String toString() {
626-
return "CacheKey [clazz=" + this.clazz.getName() + ", property=" + this.property + ", " +
627-
this.property + ", targetIsClass=" + this.targetIsClass + "]";
626+
return "PropertyCacheKey [clazz=" + this.clazz.getName() + ", property=" + this.property +
627+
", targetIsClass=" + this.targetIsClass + "]";
628628
}
629629

630630
@Override

0 commit comments

Comments
 (0)