@@ -73,7 +73,7 @@ public void testFeedByteArrayCopy() throws IOException {
7373 }
7474
7575 @ Test
76- public void testFeedByteArrayNoCopy () throws IOException {
76+ public void testFeedByteArrayReference () throws IOException {
7777 byte [] small = new byte [8 ];
7878 small [0 ] = (byte )1 ;
7979 small [2 ] = (byte )1 ;
@@ -112,7 +112,7 @@ public void testFeedByteArrayNoCopy() throws IOException {
112112 }
113113
114114 @ Test
115- public void testFeedByteArrayCopyNoCopy () throws IOException {
115+ public void testFeedByteArrayCopyReference () throws IOException {
116116 byte [] small = new byte [8 ];
117117 small [0 ] = (byte )1 ;
118118 small [2 ] = (byte )1 ;
@@ -325,7 +325,7 @@ public void testFeedByteBufferCopy() throws IOException {
325325 }
326326
327327 @ Test
328- public void testFeedByteBufferNoCopy () throws IOException {
328+ public void testFeedByteBufferReference () throws IOException {
329329 byte [] small = new byte [8 ];
330330 small [0 ] = (byte )1 ;
331331 small [2 ] = (byte )1 ;
@@ -364,7 +364,7 @@ public void testFeedByteBufferNoCopy() throws IOException {
364364 }
365365
366366 @ Test
367- public void testFeedByteBufferCopyNoCopy () throws IOException {
367+ public void testFeedByteBufferCopyReference () throws IOException {
368368 byte [] small = new byte [8 ];
369369 small [0 ] = (byte )1 ;
370370 small [2 ] = (byte )1 ;
@@ -582,12 +582,12 @@ public void testBufferRecycleByteArray() throws IOException {
582582 assertEquals (32 , b .writable ); // recycled
583583 assertEquals (true , allocated == b .link .peekLast ());
584584
585- b .feed (data , true ); // feed nocopy 1;
585+ b .feed (data , true ); // feed reference 1;
586586 assertEquals (2 , b .link .size ()); // leaves last writable buffer
587587 assertEquals (32 , b .writable ); // which remains 32 bytes
588588 assertEquals (true , allocated == b .link .peekLast ());
589589
590- b .feed (data , true ); // feed nocopy 2;
590+ b .feed (data , true ); // feed reference 2;
591591 assertEquals (3 , b .link .size ()); // leaves last writable buffer
592592 assertEquals (32 , b .writable ); // which remains 32 bytes
593593 assertEquals (true , allocated == b .link .peekLast ());
@@ -613,7 +613,7 @@ public void testBufferRecycleByteArray() throws IOException {
613613 assertEquals (16 , b .writable );
614614 assertEquals (true , allocated == b .link .peekLast ());
615615
616- b .feed (data , true ); // feed nocopy 2; writable buffer is hidden
616+ b .feed (data , true ); // feed reference 2; writable buffer is hidden
617617 assertEquals (n , 16 );
618618 assertArrayEquals (data , buf );
619619 assertEquals (2 , b .link .size ());
@@ -687,12 +687,12 @@ public void testBufferRecycleByteBuffer() throws IOException {
687687 assertEquals (32 , b .writable ); // recycled
688688 assertEquals (true , allocated == b .link .peekLast ());
689689
690- b .feed (bb .duplicate (), true ); // feed nocopy 1;
690+ b .feed (bb .duplicate (), true ); // feed reference 1;
691691 assertEquals (2 , b .link .size ()); // leaves last writable buffer
692692 assertEquals (32 , b .writable ); // which remains 32 bytes
693693 assertEquals (true , allocated == b .link .peekLast ());
694694
695- b .feed (bb .duplicate (), true ); // feed nocopy 2;
695+ b .feed (bb .duplicate (), true ); // feed reference 2;
696696 assertEquals (3 , b .link .size ()); // leaves last writable buffer
697697 assertEquals (32 , b .writable ); // which remains 32 bytes
698698 assertEquals (true , allocated == b .link .peekLast ());
@@ -718,7 +718,7 @@ public void testBufferRecycleByteBuffer() throws IOException {
718718 assertEquals (16 , b .writable );
719719 assertEquals (true , allocated == b .link .peekLast ());
720720
721- b .feed (bb .duplicate (), true ); // feed nocopy 2; writable buffer is hidden
721+ b .feed (bb .duplicate (), true ); // feed reference 2; writable buffer is hidden
722722 assertEquals (n , 16 );
723723 assertArrayEquals (data , buf );
724724 assertEquals (2 , b .link .size ());
0 commit comments