23 package com.realtime.crossfire.jxclient.items;
27 import java.util.Collection;
28 import java.util.HashSet;
29 import org.jetbrains.annotations.NotNull;
61 private final Object
sync =
new Object();
104 synchronized (
sync) {
105 for (
int i = firstIndex; i <= lastIndex; i++) {
117 synchronized (
sync) {
127 final Integer[] tmpModifiedSlots;
128 synchronized (
sync) {
132 if (tmpModifiedSlots.length > 0) {
134 locationsListener.locationsModified(tmpModifiedSlots);
136 for (
int index : tmpModifiedSlots) {
138 locationListener.locationChanged();