diff --git a/src/nodash/models/NoSession.java b/src/nodash/models/NoSession.java index df4e471..cc5aa1c 100644 --- a/src/nodash/models/NoSession.java +++ b/src/nodash/models/NoSession.java @@ -3,6 +3,7 @@ package nodash.models; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; +import java.util.List; import java.util.UUID; 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 */ - ArrayList actions = this.current.getNoActions(); + List actions = this.current.getNoActions(); this.incoming = null; this.original = null; this.current = null; diff --git a/src/nodash/models/NoUser.java b/src/nodash/models/NoUser.java index dfbdd85..b9eb361 100644 --- a/src/nodash/models/NoUser.java +++ b/src/nodash/models/NoUser.java @@ -34,6 +34,7 @@ import java.security.PrivateKey; import java.security.PublicKey; import java.security.SecureRandom; import java.util.ArrayList; +import java.util.List; import javax.crypto.BadPaddingException; import javax.crypto.IllegalBlockSizeException; @@ -55,7 +56,7 @@ public class NoUser implements Serializable { public int influences; public int actions; - private ArrayList outgoing = new ArrayList(); + private List outgoing = new ArrayList(); public NoUser() { KeyPairGenerator kpg; @@ -93,7 +94,7 @@ public class NoUser implements Serializable { } public final byte[] createFile(char[] password) { - ArrayList temp = this.outgoing; + List temp = this.outgoing; try { this.touchRandomizer(); this.outgoing = new ArrayList(); @@ -113,7 +114,7 @@ public class NoUser implements Serializable { } public final byte[] createHash() { - ArrayList temp = this.outgoing; + List temp = this.outgoing; try { this.outgoing = new ArrayList(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); @@ -158,7 +159,7 @@ public class NoUser implements Serializable { this.actions++; } - public final ArrayList getNoActions() { + public final List getNoActions() { return this.outgoing; }