From c665f40fcb5f62dc137b96e3ad9be9e9075ccd67 Mon Sep 17 00:00:00 2001 From: Woonduk Kang Date: Fri, 12 Oct 2012 02:50:37 +0000 Subject: [PATCH] =?UTF-8?q?[=EA=B0=95=EC=9A=B4=EB=8D=95]=20[LUCYSUS-1744]?= =?UTF-8?q?=20=EB=A6=AC=ED=8C=A9=ED=86=A0=EB=A7=81,=20traceId=EC=B5=9C?= =?UTF-8?q?=EC=A0=81=ED=99=94.=20spanAligner=EC=9C=84=EC=B9=98=20=EC=9D=B4?= =?UTF-8?q?=EB=8F=99=20=EA=B4=80=EB=A0=A8=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-commons/trunk@781 84d0f5b1-2673-498c-a247-62c4ff18d310 --- src/main/java/com/profiler/common/util/BytesUtils.java | 10 +++++----- .../java/com/profiler/common/util/BytesUtilsTest.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/profiler/common/util/BytesUtils.java b/src/main/java/com/profiler/common/util/BytesUtils.java index dcf7a1946..fe15660fe 100644 --- a/src/main/java/com/profiler/common/util/BytesUtils.java +++ b/src/main/java/com/profiler/common/util/BytesUtils.java @@ -19,13 +19,13 @@ public class BytesUtils { } long[] result = new long[2]; - result[0] = byteToFirstLong(buf); - result[1] = byteToSecondLong(buf); + result[0] = bytesToFirstLong(buf); + result[1] = bytesToSecondLong(buf); return result; } - public static long byteToLong(byte[] buf, int offset) { + public static long bytesToLong(byte[] buf, int offset) { if (buf == null) { throw new NullPointerException("buf must not be null"); } @@ -44,7 +44,7 @@ public class BytesUtils { return rv; } - public static long byteToFirstLong(byte[] buf) { + public static long bytesToFirstLong(byte[] buf) { if (buf == null) { throw new NullPointerException("buf must not be null"); } @@ -63,7 +63,7 @@ public class BytesUtils { return rv; } - public static long byteToSecondLong(byte[] buf) { + public static long bytesToSecondLong(byte[] buf) { if (buf == null) { throw new NullPointerException("buf must not be null"); } diff --git a/src/test/java/com/profiler/common/util/BytesUtilsTest.java b/src/test/java/com/profiler/common/util/BytesUtilsTest.java index 6341fd05f..6febeac84 100644 --- a/src/test/java/com/profiler/common/util/BytesUtilsTest.java +++ b/src/test/java/com/profiler/common/util/BytesUtilsTest.java @@ -31,8 +31,8 @@ public class BytesUtilsTest { Assert.assertEquals(least, longLong[1]); - long bMost = BytesUtils.byteToLong(bytes, 0); - long bLeast = BytesUtils.byteToLong(bytes, 8); + long bMost = BytesUtils.bytesToLong(bytes, 0); + long bLeast = BytesUtils.bytesToLong(bytes, 8); Assert.assertEquals(most, bMost); Assert.assertEquals(least, bLeast);