File tree 1 file changed +4
-1
lines changed
src/main/java/com/thebuzzmedia/sjxp
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -851,6 +851,8 @@ protected void doEndDocument(T userObject) {
851
851
* @author Riyad Kalla (software@thebuzzmedia.com)
852
852
*/
853
853
class Location {
854
+ private static final int HASH_CODE_CACHE_SIZE = 512 ;
855
+
854
856
private int hashCode ;
855
857
private Integer [] hashCodeCache ;
856
858
@@ -862,7 +864,7 @@ class Location {
862
864
*/
863
865
public Location () {
864
866
hashCode = 0 ;
865
- hashCodeCache = new Integer [512 ];
867
+ hashCodeCache = new Integer [HASH_CODE_CACHE_SIZE ];
866
868
867
869
path = new StringBuilder (256 );
868
870
lengthList = new ArrayList <Integer >(16 );
@@ -960,6 +962,7 @@ else if (hashCode != value.intValue())
960
962
*/
961
963
public void clear () {
962
964
hashCode = 0 ;
965
+ hashCodeCache = new Integer [HASH_CODE_CACHE_SIZE ];
963
966
964
967
path .setLength (0 );
965
968
lengthList .clear ();
You can’t perform that action at this time.
0 commit comments