Cleanup some IntelliJ IDEA warnings
Cleaning up some warnings for the first time in many eons.
This commit is contained in:
1 parent
5f8f743f7d
commit
b36b442b14
3 files changed
+69
-67
No files matched your search
@@ -12,7 +12,7 @@ public class CpuState {
|
||||
public int a;
|
||||
|
||||
/**
|
||||
* X index regsiter
|
||||
* X index register
|
||||
*/
|
||||
public int x;
|
||||
|
||||
@@ -61,13 +61,12 @@ public class CpuState {
|
||||
public CpuState() {}
|
||||
|
||||
/**
|
||||
* Snapshot a copy of the CpuState.
|
||||
*
|
||||
* (This is a copy constructor rather than an implementation of <code>Cloneable</code>
|
||||
* based on Josh Bloch's recommendation)
|
||||
* Snapshot a copy of the CpuState. (This is a copy constructor rather than an
|
||||
* implementation of <code>Cloneable</code> based on Josh Bloch's recommendation)
|
||||
*
|
||||
* @param s The CpuState to copy.
|
||||
*/
|
||||
@SuppressWarnings("CopyConstructorMissesField")
|
||||
public CpuState(CpuState s) {
|
||||
this.a = s.a;
|
||||
this.x = s.x;
|
||||
@@ -83,6 +82,7 @@ public class CpuState {
|
||||
this.nextArgs[1] = s.nextArgs[1];
|
||||
this.instSize = s.instSize;
|
||||
this.opTrap = s.opTrap;
|
||||
this.nmiAsserted = s.nmiAsserted;
|
||||
this.irqAsserted = s.irqAsserted;
|
||||
this.carryFlag = s.carryFlag;
|
||||
this.negativeFlag = s.negativeFlag;
|
||||
|
||||
Reference in new issue
Block a user