Skip to content

Commit

Permalink
9 fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknow0 committed Oct 26, 2023
1 parent 1dc6771 commit 8f7c2de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ private static Schema<?> getDefault(String n) {
case "java.lang.Byte":
return new Schema<>().type(INTEGER).minimum(BigDecimal.valueOf(Byte.MIN_VALUE)).maximum(BigDecimal.valueOf(Byte.MAX_VALUE));
case "char":
return new Schema<>().type("string").maxLength(1).minLength(1).nullable(false);
return new Schema<>().type(STRING).maxLength(1).minLength(1).nullable(false);
case "java.lang.Character":
return new Schema<>().type("string").maxLength(1).minLength(1);
return new Schema<>().type(STRING).maxLength(1).minLength(1);
case "short":
return new Schema<>().type(INTEGER).minimum(BigDecimal.valueOf(Short.MIN_VALUE)).maximum(BigDecimal.valueOf(Short.MAX_VALUE)).nullable(false);
case "java.lang.Short":
Expand Down

0 comments on commit 8f7c2de

Please sign in to comment.