Skip to content

Commit 605fd25

Browse files
committed
Simpler internal name
1 parent 663ed24 commit 605fd25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/apache/commons/jxpath/BasicNodeSet.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class BasicNodeSet implements NodeSet {
3838
*/
3939
public void add(final NodeSet nodeSet) {
4040
if (pointers.addAll(nodeSet.getPointers())) {
41-
clearCacheLists();
41+
clear();
4242
}
4343
}
4444

@@ -49,14 +49,14 @@ public void add(final NodeSet nodeSet) {
4949
*/
5050
public void add(final Pointer pointer) {
5151
if (pointers.add(pointer)) {
52-
clearCacheLists();
52+
clear();
5353
}
5454
}
5555

5656
/**
5757
* Clear cache list members.
5858
*/
59-
private synchronized void clearCacheLists() {
59+
private synchronized void clear() {
6060
readOnlyPointers = null;
6161
nodes = null;
6262
values = null;
@@ -103,7 +103,7 @@ public synchronized List getValues() {
103103
*/
104104
public void remove(final Pointer pointer) {
105105
if (pointers.remove(pointer)) {
106-
clearCacheLists();
106+
clear();
107107
}
108108
}
109109

0 commit comments

Comments
 (0)