knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject [3/6] knox git commit: Revert "KNOX-690 fixing the encoding/decoding in the parser and template"
Date Sat, 17 Jun 2017 14:18:49 GMT
Revert "KNOX-690 fixing the encoding/decoding in the parser and template"

This reverts commit c28224c876f1b646ddefeb66b94d517a2f170935.


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/dfb96e1b
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/dfb96e1b
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/dfb96e1b

Branch: refs/heads/master
Commit: dfb96e1b4335a133007f9868f68a488a39c343ac
Parents: 4eeff1a
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Tue Jun 13 17:40:49 2017 -0400
Committer: Larry McCay <lmccay@hortonworks.com>
Committed: Tue Jun 13 17:40:49 2017 -0400

----------------------------------------------------------------------
 .../gateway/util/urltemplate/Template.java       | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/dfb96e1b/gateway-util-urltemplate/src/main/java/org/apache/hadoop/gateway/util/urltemplate/Template.java
----------------------------------------------------------------------
diff --git a/gateway-util-urltemplate/src/main/java/org/apache/hadoop/gateway/util/urltemplate/Template.java
b/gateway-util-urltemplate/src/main/java/org/apache/hadoop/gateway/util/urltemplate/Template.java
index f2eba5a..3cce86a 100644
--- a/gateway-util-urltemplate/src/main/java/org/apache/hadoop/gateway/util/urltemplate/Template.java
+++ b/gateway-util-urltemplate/src/main/java/org/apache/hadoop/gateway/util/urltemplate/Template.java
@@ -312,17 +312,14 @@ public class Template {
   }
 
   public String toString() {
-    String s = image;
-    if( s == null ) {
-      StringBuilder b = new StringBuilder();
-      buildScheme( b );
-      buildAuthority( b );
-      buildPath( b );
-      buildQuery( b );
-      buildFragment( b );
-      s = b.toString();
-      //image = s;
-    }
+    String s = null;
+    StringBuilder b = new StringBuilder();
+    buildScheme( b );
+    buildAuthority( b );
+    buildPath( b );
+    buildQuery( b );
+    buildFragment( b );
+    s = b.toString();
     return s;
   }
 


Mime
View raw message