directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dran...@apache.org
Subject directory-kerby git commit: Fixed two style issues
Date Mon, 30 Nov 2015 07:12:30 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master ca1e8c10e -> 27038b87f


Fixed two style issues


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

Branch: refs/heads/master
Commit: 27038b87f24bba99476e4f0d794f462f3e6da838
Parents: ca1e8c1
Author: Kai Zheng <kai.zheng@intel.com>
Authored: Mon Nov 30 15:12:11 2015 +0800
Committer: Kai Zheng <kai.zheng@intel.com>
Committed: Mon Nov 30 15:12:11 2015 +0800

----------------------------------------------------------------------
 kerby-asn1/src/test/java/org/apache/kerby/asn1/HexUtil.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/27038b87/kerby-asn1/src/test/java/org/apache/kerby/asn1/HexUtil.java
----------------------------------------------------------------------
diff --git a/kerby-asn1/src/test/java/org/apache/kerby/asn1/HexUtil.java b/kerby-asn1/src/test/java/org/apache/kerby/asn1/HexUtil.java
index a2a167f..b23f960 100644
--- a/kerby-asn1/src/test/java/org/apache/kerby/asn1/HexUtil.java
+++ b/kerby-asn1/src/test/java/org/apache/kerby/asn1/HexUtil.java
@@ -67,8 +67,8 @@ public class HexUtil {
             if (hexPart.length != 2) {
                 throw new IllegalArgumentException("Invalid hex string to convert");
             }
-            bytes[i] = (byte) ((HEX_CHARS_STR.indexOf(hexPart[0]) << 4) +
-                HEX_CHARS_STR.indexOf(hexPart[1]));
+            bytes[i] = (byte) ((HEX_CHARS_STR.indexOf(hexPart[0]) << 4)
+                + HEX_CHARS_STR.indexOf(hexPart[1]));
         }
 
         return bytes;
@@ -104,8 +104,8 @@ public class HexUtil {
         byte[] bytes = new byte[len];
         char[] hexChars = hexString.toCharArray();
         for (int i = 0, j = 0; i < len; ++i) {
-            bytes[i] = (byte) ((HEX_CHARS_STR.indexOf(hexChars[j++]) << 4) +
-                HEX_CHARS_STR.indexOf(hexChars[j++]));
+            bytes[i] = (byte) ((HEX_CHARS_STR.indexOf(hexChars[j++]) << 4)
+                + HEX_CHARS_STR.indexOf(hexChars[j++]));
         }
 
         return bytes;


Mime
View raw message