mirror of
https://codeberg.org/sethm/symon.git
synced 2026-11-09 19:32:24 +00:00
Fix a few straggling Java 8-isms.
This commit is contained in:
1 parent
66c52c8826
commit
eff98118d5
3 files changed
+2
-8
No files matched your search
@@ -34,7 +34,6 @@ import java.util.Map;
|
|||||||
|
|
||||||
import java.util.SortedSet;
|
import java.util.SortedSet;
|
||||||
import java.util.TreeSet;
|
import java.util.TreeSet;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Bus ties the whole thing together, man.
|
* 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.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.function.Consumer;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A memory-mapped IO Device.
|
* A memory-mapped IO Device.
|
||||||
@@ -116,12 +115,9 @@ public abstract class Device implements Comparable<Device> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void notifyListeners() {
|
public void notifyListeners() {
|
||||||
deviceChangeListeners.forEach(new Consumer<DeviceChangeListener>() {
|
for (DeviceChangeListener listener : deviceChangeListeners) {
|
||||||
@Override
|
listener.deviceStateChanged();
|
||||||
public void accept(DeviceChangeListener deviceChangeListener) {
|
|
||||||
deviceChangeListener.deviceStateChanged();
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ package com.loomcom.symon.devices;
|
|||||||
|
|
||||||
import com.loomcom.symon.exceptions.MemoryAccessException;
|
import com.loomcom.symon.exceptions.MemoryAccessException;
|
||||||
import com.loomcom.symon.exceptions.MemoryRangeException;
|
import com.loomcom.symon.exceptions.MemoryRangeException;
|
||||||
import jdk.nashorn.internal.ir.annotations.Ignore;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
|
|||||||
Reference in new issue
Block a user