Skip to content

Commit 0b076b2

Browse files
committed
Remove duplicate "property" in PropertyCacheKey.toString()
Closes gh-26237
1 parent 0abb17a commit 0b076b2

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.
@@ -45,7 +45,7 @@
4545

4646
/**
4747
* A powerful {@link PropertyAccessor} that uses reflection to access properties
48-
* for reading and possibly also for writing.
48+
* for reading and possibly also for writing on a target instance.
4949
*
5050
* <p>A property can be referenced through a public getter method (when being read)
5151
* 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
*/
@@ -619,8 +619,8 @@ public int hashCode() {
619619

620620
@Override
621621
public String toString() {
622-
return "CacheKey [clazz=" + this.clazz.getName() + ", property=" + this.property + ", " +
623-
this.property + ", targetIsClass=" + this.targetIsClass + "]";
622+
return "PropertyCacheKey [clazz=" + this.clazz.getName() + ", property=" + this.property +
623+
", targetIsClass=" + this.targetIsClass + "]";
624624
}
625625

626626
@Override
@@ -644,6 +644,9 @@ public int compareTo(PropertyCacheKey other) {
644644
*/
645645
public static class OptimalPropertyAccessor implements CompilablePropertyAccessor {
646646

647+
/**
648+
* The member being accessed.
649+
*/
647650
public final Member member;
648651

649652
private final TypeDescriptor typeDescriptor;

0 commit comments

Comments
 (0)