From c8757c2134fc8606b16b5cc67fb46d6bb4b12e2a Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Mon, 28 Apr 2014 18:29:42 -0700 Subject: [PATCH] Make helper static. --- .../java/org/whispersystems/libaxolotl/util/KeyHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libaxolotl/src/main/java/org/whispersystems/libaxolotl/util/KeyHelper.java b/libaxolotl/src/main/java/org/whispersystems/libaxolotl/util/KeyHelper.java index f2dbf506f9..455cb25c5a 100644 --- a/libaxolotl/src/main/java/org/whispersystems/libaxolotl/util/KeyHelper.java +++ b/libaxolotl/src/main/java/org/whispersystems/libaxolotl/util/KeyHelper.java @@ -18,6 +18,8 @@ import java.util.List; */ public class KeyHelper { + private KeyHelper() {} + /** * Generate an identity key pair. Clients should only do this once, * at install time. @@ -64,7 +66,7 @@ public class KeyHelper { * @param count The number of PreKeys to generate. * @return the list of generated PreKeyRecords. */ - public List generatePreKeys(int start, int count) { + public static List generatePreKeys(int start, int count) { List results = new LinkedList<>(); for (int i=0;i