This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push: new 30f58062 Remove decorative comments 30f58062 is described below commit 30f58062ec2aa6fd61aa35fda38af49f1712d379 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Nov 19 09:46:27 2023 -0500 Remove decorative comments --- .../apache/commons/codec/binary/BinaryCodec.java | 5 --- .../commons/codec/binary/BinaryCodecTest.java | 52 +--------------------- 2 files changed, 1 insertion(+), 56 deletions(-) diff --git a/src/main/java/org/apache/commons/codec/binary/BinaryCodec.java b/src/main/java/org/apache/commons/codec/binary/BinaryCodec.java index 565b8701..456090bf 100644 --- a/src/main/java/org/apache/commons/codec/binary/BinaryCodec.java +++ b/src/main/java/org/apache/commons/codec/binary/BinaryCodec.java @@ -97,11 +97,6 @@ public class BinaryCodec implements BinaryDecoder, BinaryEncoder { return raw; } - // ------------------------------------------------------------------------ - // - // static codec operations - // - // ------------------------------------------------------------------------ /** * Decodes a char array where each char represents an ASCII '0' or '1'. * diff --git a/src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java b/src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java index d0187cf1..dce887e0 100644 --- a/src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java +++ b/src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java @@ -63,11 +63,6 @@ public class BinaryCodecTest { /** An instance of the binary codec. */ BinaryCodec instance; - // ------------------------------------------------------------------------ - // - // Test decode(byte[]) - // - // ------------------------------------------------------------------------ /** * Utility used to assert the encoded and decoded values. * @@ -264,11 +259,6 @@ public class BinaryCodecTest { assertDecodeObject(new byte[0], null); } - // ------------------------------------------------------------------------ - // - // Test decode(Object) - // - // ------------------------------------------------------------------------ /** * Tests for Object decode(Object) */ @@ -283,11 +273,6 @@ public class BinaryCodecTest { fail("Expected DecoderException"); } - // ------------------------------------------------------------------------ - // - // Test encode(byte[]) - // - // ------------------------------------------------------------------------ /* * Tests for byte[] encode(byte[]) */ @@ -543,11 +528,6 @@ public class BinaryCodecTest { fail("Expected EncoderException"); } - // ------------------------------------------------------------------------ - // - // Test encode(Object) - // - // ------------------------------------------------------------------------ /* * Tests for Object encode(Object) */ @@ -557,11 +537,6 @@ public class BinaryCodecTest { assertEquals(0, ((char[]) instance.encode(obj)).length); } - // ------------------------------------------------------------------------ - // - // Test fromAscii(byte[]) - // - // ------------------------------------------------------------------------ /* * Tests for byte[] fromAscii(byte[]) */ @@ -653,11 +628,6 @@ public class BinaryCodecTest { assertEquals(0, BinaryCodec.fromAscii((byte[]) null).length); } - // ------------------------------------------------------------------------ - // - // Test fromAscii(char[]) - // - // ------------------------------------------------------------------------ /* * Tests for byte[] fromAscii(char[]) */ @@ -749,11 +719,6 @@ public class BinaryCodecTest { assertEquals(0, BinaryCodec.fromAscii((char[]) null).length); } - // ------------------------------------------------------------------------ - // - // Test toAsciiBytes - // - // ------------------------------------------------------------------------ @Test public void testToAsciiBytes() { // With a single raw binary @@ -872,11 +837,6 @@ public class BinaryCodecTest { assertEquals(0, BinaryCodec.toAsciiBytes((byte[]) null).length); } - // ------------------------------------------------------------------------ - // - // Test toAsciiChars - // - // ------------------------------------------------------------------------ @Test public void testToAsciiChars() { // With a single raw binary @@ -995,11 +955,6 @@ public class BinaryCodecTest { assertEquals(0, BinaryCodec.toAsciiChars((byte[]) null).length); } - // ------------------------------------------------------------------------ - // - // Test toAsciiString - // - // ------------------------------------------------------------------------ /** * Tests the toAsciiString(byte[]) method */ @@ -1120,12 +1075,7 @@ public class BinaryCodecTest { assertEquals("1111111111111111", l_encoded); } - // ------------------------------------------------------------------------ - // - // Test toByteArray(String) - // - // ------------------------------------------------------------------------ - /* + /** * Tests for byte[] toByteArray(String) */ @Test