Skip to content

Commit

Permalink
Remove deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Dec 17, 2024
1 parent b61cfdb commit 427cedd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
24 changes: 0 additions & 24 deletions src/main/java/io/vertx/json/schema/ValidationException.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,6 @@ protected ValidationException(String message, Throwable cause, String keyword, O
this.input = input;
}

/**
* @deprecated just use {@link #create(String, String, Object, Collection)}
*/
@Deprecated
public static ValidationException createException(String message, String keyword, Object input, Collection<Throwable> causes) {
return new ValidationExceptionImpl(message, causes, keyword, input);
}

/**
* @deprecated just use {@link #create(String, String, Object, Throwable)}
*/
@Deprecated
public static ValidationException createException(String message, String keyword, Object input, Throwable cause) {
return new ValidationExceptionImpl(message, cause, keyword, input);
}

/**
* @deprecated just use {@link #create(String, String, Object)}
*/
@Deprecated
public static ValidationException createException(String message, String keyword, Object input) {
return new ValidationExceptionImpl(message, keyword, input);
}

public static ValidationException create(String message, String keyword, Object input, Collection<Throwable> causes) {
return new ValidationExceptionImpl(message, causes, keyword, input);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,4 @@ public NumberSchemaBuilder asInteger() {
type(SchemaType.INTEGER);
return this;
}

public boolean isIntegerSchema() {
// for legacy, while the deprecation is still in place
return this.type.equals(SchemaType.INT) || this.type.equals(SchemaType.INTEGER);
}

}
2 changes: 0 additions & 2 deletions src/main/java/io/vertx/json/schema/common/dsl/SchemaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
package io.vertx.json.schema.common.dsl;

public enum SchemaType {
@Deprecated
INT("integer"),
INTEGER("integer"),
NUMBER("number"),
BOOLEAN("boolean"),
Expand Down

0 comments on commit 427cedd

Please sign in to comment.