BUG 2245 - Fixed Constant Name
[openflowjava.git] / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / ClientSslTrustStore.java
index c346ba1e1df9f04f232819f0c9f1b02d389205b5..5f7929f686366a4c19d366e972f21abe4127d373 100644 (file)
@@ -17,7 +17,7 @@ import java.io.InputStream;
  */
 public final class ClientSslTrustStore {
 
-    private static final String filename = "/selfSignedController";
+    private static final String KEY_STORE_FILENAME = "/selfSignedController";
 
     private ClientSslTrustStore() {
         throw new UnsupportedOperationException("Utility class shouldn't be instantiated");
@@ -29,9 +29,9 @@ public final class ClientSslTrustStore {
      * @return key as InputStream
      */
     public static InputStream asInputStream() {
-        InputStream in = ClientSslTrustStore.class.getResourceAsStream(filename);
+        InputStream in = ClientSslTrustStore.class.getResourceAsStream(KEY_STORE_FILENAME);
         if (in == null) {
-            throw new IllegalStateException("KeyStore file not found: " + filename);
+            throw new IllegalStateException("KeyStore file not found: " + KEY_STORE_FILENAME);
         }
         return in;
     }