sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject sqoop git commit: SQOOP-2795: Clean up useless code in class TestSqoopJsonUtil
Date Mon, 25 Jan 2016 21:15:52 GMT
Repository: sqoop
Updated Branches:
  refs/heads/trunk 43319f1d7 -> de2fa9a68


SQOOP-2795: Clean up useless code in class TestSqoopJsonUtil

(Ze Jin via Jarek Jarcec Cecho)


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

Branch: refs/heads/trunk
Commit: de2fa9a68654a90f91d85286504d2da161975a4f
Parents: 43319f1
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Mon Jan 25 13:15:19 2016 -0800
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Mon Jan 25 13:15:19 2016 -0800

----------------------------------------------------------------------
 src/java/org/apache/sqoop/util/SqoopJsonUtil.java     | 3 +++
 src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java | 2 --
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/de2fa9a6/src/java/org/apache/sqoop/util/SqoopJsonUtil.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/util/SqoopJsonUtil.java b/src/java/org/apache/sqoop/util/SqoopJsonUtil.java
index c1b40cd..6e9ed00 100644
--- a/src/java/org/apache/sqoop/util/SqoopJsonUtil.java
+++ b/src/java/org/apache/sqoop/util/SqoopJsonUtil.java
@@ -35,6 +35,9 @@ public class SqoopJsonUtil {
   public static final Log LOG = LogFactory
     .getLog(SqoopJsonUtil.class.getName());
 
+  private SqoopJsonUtil() {
+  }
+
   public static String getJsonStringforMap(Map<String, String> map) {
     JSONObject pathPartMap = new JSONObject(map);
     return pathPartMap.toString();

http://git-wip-us.apache.org/repos/asf/sqoop/blob/de2fa9a6/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java
----------------------------------------------------------------------
diff --git a/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java b/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java
index 859e97d..ce5f4a4 100644
--- a/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java
+++ b/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java
@@ -4,13 +4,11 @@ import static org.junit.Assert.assertEquals;
 
 import java.util.HashMap;
 import java.util.Map;
-import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
 public class TestSqoopJsonUtil {
 
-  private SqoopJsonUtil jsonUtil;
   private static Map<String, String> paramMap;
   private static String jsonStr;
 


Mime
View raw message