Typo fix: Lisetner -> Listener

No behavioral changes
This commit is contained in:
Wiz 2021-12-07 12:40:27 -05:00
parent bed44bd55d
commit 5c1ae47774
2 changed files with 6 additions and 6 deletions

View File

@ -29,14 +29,14 @@ import utility.function.Callback;
*/
public class AlgorithmSteppingTaskMonitor extends TaskMonitorAdapter {
private Set<Callback> stepLisetners = new HashSet<>();
private Set<Callback> stepListeners = new HashSet<>();
public AlgorithmSteppingTaskMonitor() {
setCancelEnabled(true);
}
public void addStepListener(Callback c) {
stepLisetners.add(c);
stepListeners.add(c);
}
@Override
@ -84,6 +84,6 @@ public class AlgorithmSteppingTaskMonitor extends TaskMonitorAdapter {
}
protected void notifyStepReady() {
stepLisetners.forEach(l -> l.call());
stepListeners.forEach(l -> l.call());
}
}

View File

@ -192,13 +192,13 @@ class DomainObjectChangeSupport {
private List<DomainObjectListener> atomicAddListener(DomainObjectListener l) {
List<DomainObjectListener> previousLisetners = new ArrayList<>();
List<DomainObjectListener> previousListeners = new ArrayList<>();
for (DomainObjectListener listener : listeners) {
previousLisetners.add(listener);
previousListeners.add(listener);
}
listeners.add(l);
return previousLisetners;
return previousListeners;
}
//==================================================================================================