Skip to content

Commit

Permalink
more clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
IOOI-SqAR committed Jan 3, 2024
1 parent 421d445 commit 374c4e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VirtualJTCCommon/src/main/java/org/sqar/virtualjtc/z8/Z8.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public Z8(int cyclesPerSecond, boolean regInitZero, Z8Memory memory, Z8IO z8io)


public synchronized void addPCListener(int addr, Z8PCListener listener) {
PCListenerItem[] items = null;
PCListenerItem[] items;
if (this.pcListenerItems != null) {
items = new PCListenerItem[this.pcListenerItems.length + 1];
System.arraycopy(this.pcListenerItems, 0, items, 0, this.pcListenerItems.length);
Expand All @@ -233,7 +233,7 @@ public synchronized void addPCListener(int addr, Z8PCListener listener) {

public synchronized void removePCListener(int addr, Z8PCListener listener) {
if (this.pcListenerItems != null) {
java.util.List<PCListenerItem> list = new ArrayList<PCListenerItem>(
java.util.List<PCListenerItem> list = new ArrayList<>(
this.pcListenerItems.length);
boolean changed = false;
for (PCListenerItem item : this.pcListenerItems) {
Expand Down Expand Up @@ -376,7 +376,7 @@ public int getRegValue(int r) {


public RunMode getRunMode() {
RunMode runMode = null;
RunMode runMode;
synchronized (this.waitMonitor) {
runMode = this.runMode;
}
Expand Down

0 comments on commit 374c4e0

Please sign in to comment.