changeset 1259:e4aca06e6276

UnsignedAppletTrustConfirmation.java (stripFileImp) fixed typo on variable of normlaized to normalized
author Jiri Vanek <jvanek@redhat.com>
date Thu, 10 Sep 2015 12:15:01 +0200
parents 842edb1f5b9c
children 3d086f009551
files ChangeLog netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java
diffstat 2 files changed, 13 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Sep 09 19:19:00 2015 +0200
+++ b/ChangeLog	Thu Sep 10 12:15:01 2015 +0200
@@ -1,3 +1,9 @@
+2015-09-10  Jiri Vanek  <jvanek@redhat.com>
+
+	* netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java:
+ 	(stripFileImp) fixed typo on variable of normlaized to normalized
+
+
 2015-09-09  Jacob Wisor  <gitne@icedtea.classpath.org>
 
 	* .hgignore: Fix regex patterns of files ignored by Mercurial
--- a/netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java	Wed Sep 09 19:19:00 2015 +0200
+++ b/netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java	Thu Sep 10 12:15:01 2015 +0200
@@ -286,18 +286,18 @@
     
     private static String stripFileImp(URL documentbase) {
         try {
-            String normlaized = UrlUtils.normalizeUrlAndStripParams(documentbase).toExternalForm().trim();
-            if (normlaized.endsWith("/") || normlaized.endsWith("\\")) {
-                return normlaized;
+            String normalized = UrlUtils.normalizeUrlAndStripParams(documentbase).toExternalForm().trim();
+            if (normalized.endsWith("/") || normalized.endsWith("\\")) {
+                return normalized;
             }
-            URL middleway = new URL(normlaized);
+            URL middleway = new URL(normalized);
             String file = middleway.getFile();
             int i = Math.max(file.lastIndexOf('/'), file.lastIndexOf('\\'));
             if (i<0){
-                return normlaized;
+                return normalized;
             }
             String parent = file.substring(0, i+1);
-            String stripped = normlaized.replace(file, parent);
+            String stripped = normalized.replace(file, parent);
             return stripped;
         } catch (Exception ex) {
             OutputController.getLogger().log(ex);
@@ -322,4 +322,4 @@
         return s + "/";
     }
 
-}
\ No newline at end of file
+}