mirror of
https://github.com/sethm/symon.git
synced 2024-12-28 11:30:51 +00:00
Fix a few straggling Java 8-isms.
This commit is contained in:
parent
66c52c8826
commit
eff98118d5
@ -34,7 +34,6 @@ import java.util.Map;
|
||||
|
||||
import java.util.SortedSet;
|
||||
import java.util.TreeSet;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* The Bus ties the whole thing together, man.
|
||||
|
@ -30,7 +30,6 @@ import com.loomcom.symon.exceptions.MemoryRangeException;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* A memory-mapped IO Device.
|
||||
@ -116,12 +115,9 @@ public abstract class Device implements Comparable<Device> {
|
||||
}
|
||||
|
||||
public void notifyListeners() {
|
||||
deviceChangeListeners.forEach(new Consumer<DeviceChangeListener>() {
|
||||
@Override
|
||||
public void accept(DeviceChangeListener deviceChangeListener) {
|
||||
deviceChangeListener.deviceStateChanged();
|
||||
}
|
||||
});
|
||||
for (DeviceChangeListener listener : deviceChangeListeners) {
|
||||
listener.deviceStateChanged();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -27,7 +27,6 @@ package com.loomcom.symon.devices;
|
||||
|
||||
import com.loomcom.symon.exceptions.MemoryAccessException;
|
||||
import com.loomcom.symon.exceptions.MemoryRangeException;
|
||||
import jdk.nashorn.internal.ir.annotations.Ignore;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
|
Loading…
Reference in New Issue
Block a user