Skip to content

Commit

Permalink
del[char]: delete unused char serialization method
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Oct 6, 2023
1 parent de496ff commit 6a7c586
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,4 @@ public void stringTest() {
Assert.assertEquals(result, str);
}

@Test
public void charTest() {
char c = 'a';
ByteBuf byteBuf = Unpooled.buffer();
ByteBufUtils.writeChar(byteBuf, c);
char result = ByteBufUtils.readChar(byteBuf);
Assert.assertEquals(result, c);

Character d = null;
ByteBufUtils.writeCharBox(byteBuf, d);
Assert.assertEquals(ByteBufUtils.readCharBox(byteBuf), Character.valueOf(Character.MIN_VALUE));
}

}

0 comments on commit 6a7c586

Please sign in to comment.