Converted ArrayList to List declaration

This commit is contained in:
Dave
2015-06-27 21:56:19 +02:00
parent 34b9a748f9
commit 213df01c78
2 changed files with 7 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ package nodash.models;
import java.io.IOException; import java.io.IOException;
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List;
import java.util.UUID; import java.util.UUID;
import javax.crypto.BadPaddingException; import javax.crypto.BadPaddingException;
@@ -154,7 +155,7 @@ public final class NoSession implements Serializable {
} }
/* 5.2.3: clear influences as they will not need to be re-applied */ /* 5.2.3: clear influences as they will not need to be re-applied */
ArrayList<NoAction> actions = this.current.getNoActions(); List<NoAction> actions = this.current.getNoActions();
this.incoming = null; this.incoming = null;
this.original = null; this.original = null;
this.current = null; this.current = null;

View File

@@ -34,6 +34,7 @@ import java.security.PrivateKey;
import java.security.PublicKey; import java.security.PublicKey;
import java.security.SecureRandom; import java.security.SecureRandom;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List;
import javax.crypto.BadPaddingException; import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException; import javax.crypto.IllegalBlockSizeException;
@@ -55,7 +56,7 @@ public class NoUser implements Serializable {
public int influences; public int influences;
public int actions; public int actions;
private ArrayList<NoAction> outgoing = new ArrayList<NoAction>(); private List<NoAction> outgoing = new ArrayList<NoAction>();
public NoUser() { public NoUser() {
KeyPairGenerator kpg; KeyPairGenerator kpg;
@@ -93,7 +94,7 @@ public class NoUser implements Serializable {
} }
public final byte[] createFile(char[] password) { public final byte[] createFile(char[] password) {
ArrayList<NoAction> temp = this.outgoing; List<NoAction> temp = this.outgoing;
try { try {
this.touchRandomizer(); this.touchRandomizer();
this.outgoing = new ArrayList<NoAction>(); this.outgoing = new ArrayList<NoAction>();
@@ -113,7 +114,7 @@ public class NoUser implements Serializable {
} }
public final byte[] createHash() { public final byte[] createHash() {
ArrayList<NoAction> temp = this.outgoing; List<NoAction> temp = this.outgoing;
try { try {
this.outgoing = new ArrayList<NoAction>(); this.outgoing = new ArrayList<NoAction>();
ByteArrayOutputStream baos = new ByteArrayOutputStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -158,7 +159,7 @@ public class NoUser implements Serializable {
this.actions++; this.actions++;
} }
public final ArrayList<NoAction> getNoActions() { public final List<NoAction> getNoActions() {
return this.outgoing; return this.outgoing;
} }