We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 362538f commit 54d23ccCopy full SHA for 54d23cc
jnosql-mongodb/src/test/java/org/eclipse/jnosql/databases/mongodb/integration/AsciiCharacter.java
@@ -31,15 +31,7 @@ public record AsciiCharacter(
31
@Column
32
Boolean isoControl) {
33
34
- public static boolean isValidAsciiCharacter(int numericPosition) {
35
- return numericPosition > 0 || numericPosition <= 127;
36
- }
37
-
38
public static AsciiCharacter of(int value) {
39
- if (!isValidAsciiCharacter(value))
40
- throw new IllegalArgumentException(
41
- "%d is not an ASCII character supported. It should be greater than 0 and less than 127."
42
- .formatted(value));
43
char thisCharacter = (char) value;
44
return new AsciiCharacter(
45
Integer.toUnsignedLong(value),
0 commit comments