]> nmode's Git Repositories - signal-cli/commitdiff
Fix formatting
authorAsamK <asamk@gmx.de>
Tue, 6 Oct 2015 19:45:39 +0000 (21:45 +0200)
committerAsamK <asamk@gmx.de>
Tue, 6 Oct 2015 19:45:39 +0000 (21:45 +0200)
src/main/java/cli/JsonAxolotlStore.java
src/main/java/cli/JsonIdentityKeyStore.java
src/main/java/cli/JsonPreKeyStore.java
src/main/java/cli/JsonSessionStore.java
src/main/java/cli/JsonSignedPreKeyStore.java
src/main/java/cli/Manager.java

index cfed0cd8c81bd48d8d486b4faf8fcec2776f73ab..e7eb054c7167072e93c0c88cb8526372e5a7bf09 100644 (file)
@@ -3,13 +3,15 @@ package cli;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import org.whispersystems.libaxolotl.*;
+import org.whispersystems.libaxolotl.AxolotlAddress;
+import org.whispersystems.libaxolotl.IdentityKey;
+import org.whispersystems.libaxolotl.IdentityKeyPair;
+import org.whispersystems.libaxolotl.InvalidKeyIdException;
 import org.whispersystems.libaxolotl.state.AxolotlStore;
 import org.whispersystems.libaxolotl.state.PreKeyRecord;
 import org.whispersystems.libaxolotl.state.SessionRecord;
 import org.whispersystems.libaxolotl.state.SignedPreKeyRecord;
 
-import java.io.IOException;
 import java.util.List;
 
 class JsonAxolotlStore implements AxolotlStore {
index 8577526d64e8dfd46e9596cab1f0394430ca6ae2..e4d18b8f83e73d3fc400e711707b52c8c68c47d3 100644 (file)
@@ -69,7 +69,7 @@ class JsonIdentityKeyStore implements IdentityKeyStore {
                         String trustedKeyName = trustedKey.get("name").asText();
                         try {
                             trustedKeyMap.put(trustedKeyName, new IdentityKey(Base64.decode(trustedKey.get("identityKey").asText()), 0));
-                        }  catch (InvalidKeyException | IOException e) {
+                        } catch (InvalidKeyException | IOException e) {
                             System.out.println(String.format("Error while decoding key for: %s", trustedKeyName));
                         }
                     }
index 1ae297ecc59e0e61f7679b5635b7747f5cc8ce8e..393f1805c03cf3f7d389ec2e3cc1e3df6df7fc46 100644 (file)
@@ -66,7 +66,7 @@ class JsonPreKeyStore implements PreKeyStore {
                     Integer preKeyId = preKey.get("id").asInt();
                     try {
                         preKeyMap.put(preKeyId, Base64.decode(preKey.get("record").asText()));
-                    }  catch (IOException e) {
+                    } catch (IOException e) {
                         System.out.println(String.format("Error while decoding prekey for: %s", preKeyId));
                     }
                 }
index c70fa5cf692418b11f2d6c3f981e36e771adbc2f..3cb78945dd9d62b8dbbc6cae60ddd3db42a904f5 100644 (file)
@@ -87,7 +87,7 @@ class JsonSessionStore implements SessionStore {
                     String sessionName = session.get("name").asText();
                     try {
                         sessionMap.put(new AxolotlAddress(sessionName, session.get("deviceId").asInt()), Base64.decode(session.get("record").asText()));
-                    }  catch (IOException e) {
+                    } catch (IOException e) {
                         System.out.println(String.format("Error while decoding session for: %s", sessionName));
                     }
                 }
index 9b48fa97034763b865e01ad4450081c6bcf33212..4dc0cad3af1e4baf720393e04b08a1959a250c58 100644 (file)
@@ -83,7 +83,7 @@ class JsonSignedPreKeyStore implements SignedPreKeyStore {
                     Integer preKeyId = preKey.get("id").asInt();
                     try {
                         preKeyMap.put(preKeyId, Base64.decode(preKey.get("record").asText()));
-                    }  catch (IOException e) {
+                    } catch (IOException e) {
                         System.out.println(String.format("Error while decoding prekey for: %s", preKeyId));
                     }
                 }
index 4d8c733fd3cb82df51115f4e033ee38cce81cd24..7ca2c123a70b778cbb82a38da5b6657079a12fd0 100644 (file)
@@ -56,8 +56,8 @@ class Manager {
     private final static String URL = "https://textsecure-service.whispersystems.org";
     private final static TrustStore TRUST_STORE = new WhisperTrustStore();
 
-    public final static String PROJECT_NAME =  Manager.class.getPackage().getImplementationTitle();
-    public final static String PROJECT_VERSION =  Manager.class.getPackage().getImplementationVersion();
+    public final static String PROJECT_NAME = Manager.class.getPackage().getImplementationTitle();
+    public final static String PROJECT_VERSION = Manager.class.getPackage().getImplementationVersion();
     private final static String USER_AGENT = PROJECT_NAME + " " + PROJECT_VERSION;
 
     private final static String settingsPath = System.getProperty("user.home") + "/.config/textsecure";