1
0
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:
Seth Morabito 2016-01-08 20:40:23 -08:00
parent 66c52c8826
commit eff98118d5
3 changed files with 3 additions and 9 deletions

View File

@ -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.

View File

@ -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();
}
}
/**

View File

@ -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;