From 4c47cab490cc953a8912a679fd7ce13019f25d00 Mon Sep 17 00:00:00 2001 From: BerryCol Date: Sat, 2 Mar 2019 17:38:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=B0=8F=E9=94=99=E8=AF=AF=EF=BC=8C=E8=8C=83=E5=9B=B4=E6=98=AF?= =?UTF-8?q?0x00-0xf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jupiter/serialization/SerializerType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupiter-serialization/jupiter-serialization-api/src/main/java/org/jupiter/serialization/SerializerType.java b/jupiter-serialization/jupiter-serialization-api/src/main/java/org/jupiter/serialization/SerializerType.java index d36d9375..1a9a6f2d 100644 --- a/jupiter-serialization/jupiter-serialization-api/src/main/java/org/jupiter/serialization/SerializerType.java +++ b/jupiter-serialization/jupiter-serialization-api/src/main/java/org/jupiter/serialization/SerializerType.java @@ -34,7 +34,7 @@ public enum SerializerType { ; SerializerType(byte value) { - if (0x00 < value && value < 0x10) { + if (0x00 < value && value < 0xf) { this.value = value; } else { throw new IllegalArgumentException("Out of range(0x01 ~ 0x0f): " + value); From b0dfd6b0debe37efe0c9aeec808e09f03a0d15dd Mon Sep 17 00:00:00 2001 From: BerryCol Date: Sat, 2 Mar 2019 17:47:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=B0=8F=E9=94=99=E8=AF=AF=EF=BC=8C=E8=8C=83=E5=9B=B4=E6=98=AF?= =?UTF-8?q?0x00-0x0f?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jupiter/serialization/SerializerType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupiter-serialization/jupiter-serialization-api/src/main/java/org/jupiter/serialization/SerializerType.java b/jupiter-serialization/jupiter-serialization-api/src/main/java/org/jupiter/serialization/SerializerType.java index 1a9a6f2d..6eca5e95 100644 --- a/jupiter-serialization/jupiter-serialization-api/src/main/java/org/jupiter/serialization/SerializerType.java +++ b/jupiter-serialization/jupiter-serialization-api/src/main/java/org/jupiter/serialization/SerializerType.java @@ -34,7 +34,7 @@ public enum SerializerType { ; SerializerType(byte value) { - if (0x00 < value && value < 0xf) { + if (0x00 < value && value < 0x0f) { this.value = value; } else { throw new IllegalArgumentException("Out of range(0x01 ~ 0x0f): " + value);