Skip to content

Commit ccbf0fa

Browse files
committed
fix TurnArray: isEmpty must be synchronized
1 parent 5afb902 commit ccbf0fa

File tree

1 file changed

+1
-1
lines changed
  • net.lecousin.core/src/main/java/net/lecousin/framework/collections

1 file changed

+1
-1
lines changed

net.lecousin.core/src/main/java/net/lecousin/framework/collections/TurnArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public synchronized T removeLast() {
135135
}
136136

137137
@Override
138-
public boolean isEmpty() {
138+
public synchronized boolean isEmpty() {
139139
return start == end;
140140
}
141141

0 commit comments

Comments
 (0)