You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2019/01/07 14:35:40 UTC

hive git commit: HIVE-21073: Remove Extra String Object (BELUGA BEHR, reviewed by Peter Vary)

Repository: hive
Updated Branches:
  refs/heads/master 5a70751ba -> b354ed423


HIVE-21073: Remove Extra String Object (BELUGA BEHR, reviewed by Peter Vary)


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

Branch: refs/heads/master
Commit: b354ed423f9858d065f31f3bc53b815ffba14bbb
Parents: 5a70751
Author: BELUGA BEHR <da...@gmail.com>
Authored: Mon Jan 7 15:35:00 2019 +0100
Committer: Peter Vary <pv...@cloudera.com>
Committed: Mon Jan 7 15:35:00 2019 +0100

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/b354ed42/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
index d0f6451..2ff9ad3 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
@@ -2817,8 +2817,7 @@ public final class Utilities {
   }
 
   public static String generateFileName(Byte tag, String bigBucketFileName) {
-    String fileName = new String("MapJoin-" + tag + "-" + bigBucketFileName + suffix);
-    return fileName;
+    return "MapJoin-" + tag + "-" + bigBucketFileName + suffix;
   }
 
   public static Path generateTmpPath(Path basePath, String id) {
@@ -2834,8 +2833,7 @@ public final class Utilities {
   }
 
   public static String generatePath(Path baseURI, String filename) {
-    String path = new String(baseURI + Path.SEPARATOR + filename);
-    return path;
+    return baseURI + Path.SEPARATOR + filename;
   }
 
   public static String now() {