directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject [05/36] directory-kerby git commit: Avoid dumping data in tests
Date Mon, 15 Feb 2016 02:42:29 GMT
Avoid dumping data in tests


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

Branch: refs/heads/kadmin-remote
Commit: f30488557402dea49fab354e1ec569ef61143603
Parents: 083e960
Author: Kai Zheng <kai.zheng@intel.com>
Authored: Mon Jan 18 06:51:44 2016 +0800
Committer: Kai Zheng <kai.zheng@intel.com>
Committed: Mon Jan 18 06:51:44 2016 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/kerby/asn1/Asn1.java       | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/f3048855/kerby-common/kerby-asn1/src/main/java/org/apache/kerby/asn1/Asn1.java
----------------------------------------------------------------------
diff --git a/kerby-common/kerby-asn1/src/main/java/org/apache/kerby/asn1/Asn1.java b/kerby-common/kerby-asn1/src/main/java/org/apache/kerby/asn1/Asn1.java
index 08a9019..62b96d7 100644
--- a/kerby-common/kerby-asn1/src/main/java/org/apache/kerby/asn1/Asn1.java
+++ b/kerby-common/kerby-asn1/src/main/java/org/apache/kerby/asn1/Asn1.java
@@ -145,10 +145,10 @@ public final class Asn1 {
      * See avove.
      */
     public static void parseAndDump(byte[] content) throws IOException {
-        String hexStr = HexUtil.bytesToHex(content);
+        //String hexStr = HexUtil.bytesToHex(content);
         Asn1Dumper dumper = new Asn1Dumper();
-        System.out.println("Dumping data:");
-        dumper.dumpData(hexStr);
+        //System.out.println("Dumping data:");
+        //dumper.dumpData(hexStr);
         dumper.parseAndDump(content);
         String output = dumper.output();
         System.out.println(output);
@@ -177,10 +177,10 @@ public final class Asn1 {
      * See avove.
      */
     public static void decodeAndDump(byte[] content) throws IOException {
-        String hexStr = HexUtil.bytesToHex(content);
+        //String hexStr = HexUtil.bytesToHex(content);
         Asn1Dumper dumper = new Asn1Dumper();
-        System.out.println("Dumping data:");
-        dumper.dumpData(hexStr);
+        //System.out.println("Dumping data:");
+        //dumper.dumpData(hexStr);
         dumper.decodeAndDump(content);
         String output = dumper.output();
         System.out.println(output);


Mime
View raw message