qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject qpid-proton-j git commit: PROTON-1672: replace use of Java 8+ constants in tests
Date Thu, 12 Apr 2018 15:09:59 GMT
Repository: qpid-proton-j
Updated Branches:
  refs/heads/master 18d2cb369 -> 1c62bc284


PROTON-1672: replace use of Java 8+ constants in tests


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton-j/commit/1c62bc28
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton-j/tree/1c62bc28
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton-j/diff/1c62bc28

Branch: refs/heads/master
Commit: 1c62bc2845c336f5b061509a959b699a45344474
Parents: 18d2cb3
Author: Robbie Gemmell <robbie@apache.org>
Authored: Thu Apr 12 16:07:56 2018 +0100
Committer: Robbie Gemmell <robbie@apache.org>
Committed: Thu Apr 12 16:07:56 2018 +0100

----------------------------------------------------------------------
 .../apache/qpid/proton/codec/CompositeReadableBufferTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton-j/blob/1c62bc28/proton-j/src/test/java/org/apache/qpid/proton/codec/CompositeReadableBufferTest.java
----------------------------------------------------------------------
diff --git a/proton-j/src/test/java/org/apache/qpid/proton/codec/CompositeReadableBufferTest.java
b/proton-j/src/test/java/org/apache/qpid/proton/codec/CompositeReadableBufferTest.java
index 7ed5c3e..298d01c 100644
--- a/proton-j/src/test/java/org/apache/qpid/proton/codec/CompositeReadableBufferTest.java
+++ b/proton-j/src/test/java/org/apache/qpid/proton/codec/CompositeReadableBufferTest.java
@@ -2268,7 +2268,7 @@ public class CompositeReadableBufferTest {
     }
 
     private byte[] int2bytes(int value) {
-        byte bytes[] = new byte[Integer.BYTES];
+        byte bytes[] = new byte[4];
         int index = 0;
 
         bytes[index++] = (byte) (value >>> 24);
@@ -2280,7 +2280,7 @@ public class CompositeReadableBufferTest {
     }
 
     private byte[] long2bytes(long value) {
-        byte bytes[] = new byte[Long.BYTES];
+        byte bytes[] = new byte[8];
         int index = 0;
 
         bytes[index++] = (byte) (value >>> 56);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message