Skip to content

Commit

Permalink
Remove duplicate "property" in PropertyCacheKey.toString()
Browse files Browse the repository at this point in the history
Closes gh-26237
  • Loading branch information
jhoeller committed Dec 8, 2020
1 parent 0abb17a commit 0b076b2
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -45,7 +45,7 @@

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

/**
* Create a new property accessor for reading and possibly writing.
* @param allowWrite whether to also allow for write operations
* Create a new property accessor for reading and possibly also writing.
* @param allowWrite whether to allow write operations on a target instance
* @since 4.3.15
* @see #canWrite
*/
Expand Down Expand Up @@ -619,8 +619,8 @@ public int hashCode() {

@Override
public String toString() {
return "CacheKey [clazz=" + this.clazz.getName() + ", property=" + this.property + ", " +
this.property + ", targetIsClass=" + this.targetIsClass + "]";
return "PropertyCacheKey [clazz=" + this.clazz.getName() + ", property=" + this.property +
", targetIsClass=" + this.targetIsClass + "]";
}

@Override
Expand All @@ -644,6 +644,9 @@ public int compareTo(PropertyCacheKey other) {
*/
public static class OptimalPropertyAccessor implements CompilablePropertyAccessor {

/**
* The member being accessed.
*/
public final Member member;

private final TypeDescriptor typeDescriptor;
Expand Down

0 comments on commit 0b076b2

Please sign in to comment.