Skip to content

Commit 1212fbe

Browse files
committed
removing unused ObjectSchema#failure()
1 parent 23ccf44 commit 1212fbe

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/src/main/java/org/everit/json/schema/ObjectSchema.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,6 @@ public ObjectSchema(final Builder builder) {
201201
this.patternProperties = Collections.unmodifiableMap(builder.patternProperties);
202202
}
203203

204-
private void failure(final String exceptionMessage, final Object... params) {
205-
throw new ValidationException(String.format(exceptionMessage, params));
206-
}
207-
208204
private Stream<String> getAdditionalProperties(final JSONObject subject) {
209205
String[] names = JSONObject.getNames(subject);
210206
if (names == null) {

0 commit comments

Comments
 (0)