mirror of https://github.com/apache/lucene.git
LUCENE-5275: Change AttributeSource.toString to display the current state of attributes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1531376 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d69231cf8c
commit
96380e9129
|
@ -143,6 +143,9 @@ API Changes:
|
||||||
with IndexSearcher when an ExecutorService is specified.
|
with IndexSearcher when an ExecutorService is specified.
|
||||||
(Ryan Ernst, Mike McCandless, Robert Muir)
|
(Ryan Ernst, Mike McCandless, Robert Muir)
|
||||||
|
|
||||||
|
* LUCENE-5275: Change AttributeSource.toString() to display the current
|
||||||
|
state of attributes. (Robert Muir)
|
||||||
|
|
||||||
Optimizations
|
Optimizations
|
||||||
|
|
||||||
* LUCENE-5225: The ToParentBlockJoinQuery only keeps tracks of the the child
|
* LUCENE-5225: The ToParentBlockJoinQuery only keeps tracks of the the child
|
||||||
|
|
|
@ -501,4 +501,13 @@ public class AttributeSource {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a string consisting of the class's simple name, the hex representation of the identity hash code,
|
||||||
|
* and the current reflection of all attributes.
|
||||||
|
* @see #reflectAsString(boolean)
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return getClass().getSimpleName() + '@' + Integer.toHexString(System.identityHashCode(this)) + " " + reflectAsString(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue