releng: Transition to jdt.annotation 2.0
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.ctf.core.tests / src / org / eclipse / tracecompass / ctf / core / tests / io / BitBufferTest.java
index 76196cdf3425ec30bfbcfe0d23bc28f9624e8666..8fe956aacfbb0baf2ea55ac343bd96abfee783eb 100644 (file)
@@ -175,8 +175,7 @@ public class BitBufferTest {
      */
     @Test
     public void testGetBytes() {
-        @NonNull
-        byte[] data = new byte[2];
+        byte @NonNull [] data = new byte[2];
         ByteBuffer bb = ByteBuffer.allocate(10);
         bb.put((byte) 0);
         bb.put((byte) 1);
@@ -199,8 +198,7 @@ public class BitBufferTest {
      */
     @Test
     public void testGetBytesMiddle() throws CTFException {
-        @NonNull
-        byte[] data = new byte[5];
+        byte @NonNull [] data = new byte[5];
         // this string has been carefully selected and tested... don't change
         // the string and expect the result to be the same.
         fixture = new BitBuffer(Util.testMemory(ByteBuffer.wrap(new String("hello world").getBytes())));
This page took 0.026543 seconds and 5 git commands to generate.