Skip to content

Commit bb77836

Browse files
committed
Code formatting
1 parent 99fa1b7 commit bb77836

File tree

13 files changed

+24
-19
lines changed

13 files changed

+24
-19
lines changed

src/main/java/com/saasquatch/jsonschemainferrer/AdditionalPropertiesPolicies.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@ public static AdditionalPropertiesPolicy noOp() {
3131

3232
/**
3333
* @return A singleton {@link AdditionalPropertiesPolicy} that always sets
34-
* {@code additionalProperties} to true
34+
* {@code additionalProperties} to true
3535
*/
3636
public static AdditionalPropertiesPolicy allowed() {
3737
return input -> JsonNodeFactory.instance.booleanNode(true);
3838
}
3939

4040
/**
4141
* @return A singleton {@link AdditionalPropertiesPolicy} that always sets
42-
* {@code additionalProperties} to false
42+
* {@code additionalProperties} to false
4343
*/
4444
public static AdditionalPropertiesPolicy notAllowed() {
4545
return input -> JsonNodeFactory.instance.booleanNode(false);
4646
}
4747

4848
/**
4949
* @return A singleton {@link AdditionalPropertiesPolicy} that sets {@code additionalProperties}
50-
* to existing types on the schema
50+
* to existing types on the schema
5151
*/
5252
@Beta
5353
public static AdditionalPropertiesPolicy existingTypes() {

src/main/java/com/saasquatch/jsonschemainferrer/Consts.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ interface Consts {
1616
* Field names
1717
*/
1818
interface Fields {
19+
1920
String TYPE = "type";
2021
String ITEMS = "items";
2122
String ANY_OF = "anyOf";
@@ -46,6 +47,7 @@ interface Fields {
4647
* Type names
4748
*/
4849
interface Types {
50+
4951
String OBJECT = "object";
5052
String ARRAY = "array";
5153
String STRING = "string";
@@ -61,6 +63,7 @@ interface Types {
6163
* Format names
6264
*/
6365
interface Formats {
66+
6467
String EMAIL = "email";
6568
String IPV4 = "ipv4";
6669
String IPV6 = "ipv6";
@@ -70,6 +73,7 @@ interface Formats {
7073
}
7174

7275
interface JsonPath {
76+
7377
String ROOT = "$";
7478
}
7579

src/main/java/com/saasquatch/jsonschemainferrer/EnumExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public interface EnumExtractor {
1818

1919
/**
2020
* @return The <em>group</em> of enums. Note that each group is expected to be not null and not
21-
* empty. All the elements in each group are expected to come directly from the given
22-
* samples if possible to ensure {@link JsonNode#equals(Object)} works correctly.
21+
* empty. All the elements in each group are expected to come directly from the given samples if
22+
* possible to ensure {@link JsonNode#equals(Object)} works correctly.
2323
*/
2424
@Nonnull
2525
Collection<Collection<? extends JsonNode>> extractEnums(@Nonnull EnumExtractorInput input);

src/main/java/com/saasquatch/jsonschemainferrer/EnumExtractors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static EnumExtractor noOp() {
3030

3131
/**
3232
* @return an {@link EnumExtractor} that extracts all the textual {@link JsonNode}s that are valid
33-
* names of a Java {@link Enum}.
33+
* names of a Java {@link Enum}.
3434
*/
3535
public static <E extends Enum<E>> EnumExtractor validEnum(@Nonnull Class<E> enumClass) {
3636
Objects.requireNonNull(enumClass);

src/main/java/com/saasquatch/jsonschemainferrer/ExamplesPolicies.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public static ExamplesPolicy useFirstSamples(@Nonnegative int limit) {
3434

3535
/**
3636
* @param typePredicate The predicate for types. Note that the input of this predicate can be
37-
* null.
37+
* null.
3838
* @return An {@link ExamplesPolicy} that takes the first samples with a limit and a
39-
* {@link Predicate} for types.
39+
* {@link Predicate} for types.
4040
*/
4141
@Beta
4242
public static ExamplesPolicy useFirstSamples(@Nonnegative int limit,

src/main/java/com/saasquatch/jsonschemainferrer/FormatInferrerInput.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public final class FormatInferrerInput {
1414
private final SpecVersion specVersion;
1515
private final String path;
1616

17-
FormatInferrerInput(@Nonnull JsonNode sample, @Nonnull SpecVersion specVersion, @Nonnull String path) {
17+
FormatInferrerInput(@Nonnull JsonNode sample, @Nonnull SpecVersion specVersion,
18+
@Nonnull String path) {
1819
this.sample = sample;
1920
this.specVersion = specVersion;
2021
this.path = path;

src/main/java/com/saasquatch/jsonschemainferrer/FormatInferrers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static FormatInferrer ip() {
4646

4747
/**
4848
* @return A {@link FormatInferrer} that uses the given {@link FormatInferrer}s in the original
49-
* order, and uses the first non-null result available.
49+
* order, and uses the first non-null result available.
5050
* @throws NullPointerException if the input has null elements
5151
*/
5252
public static FormatInferrer chained(@Nonnull FormatInferrer... formatInferrers) {

src/main/java/com/saasquatch/jsonschemainferrer/GenericSchemaFeatures.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ public static GenericSchemaFeature noOp() {
2424

2525
/**
2626
* @return An {@link GenericSchemaFeature} that uses the given {@link GenericSchemaFeature}s in
27-
* the given order, overwriting previous results if add-ons with the same field names
28-
* exist.
27+
* the given order, overwriting previous results if add-ons with the same field names exist.
2928
* @throws NullPointerException if the input has null elements
3029
*/
3130
public static GenericSchemaFeature chained(@Nonnull GenericSchemaFeature... features) {

src/main/java/com/saasquatch/jsonschemainferrer/MultipleOfPolicies.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111
public final class MultipleOfPolicies {
1212

13-
private MultipleOfPolicies() {}
13+
private MultipleOfPolicies() {
14+
}
1415

1516
/**
1617
* @return a singleton {@link MultipleOfPolicy} that does nothing.
@@ -21,7 +22,7 @@ public static MultipleOfPolicy noOp() {
2122

2223
/**
2324
* @return a singleton {@link MultipleOfPolicy} that uses the GCD of number samples as
24-
* {@code multipleOf}.
25+
* {@code multipleOf}.
2526
*/
2627
public static MultipleOfPolicy gcd() {
2728
return input -> {

src/main/java/com/saasquatch/jsonschemainferrer/NumberRangeFeature.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public ObjectNode getFeatureResult(@Nonnull GenericSchemaFeatureInput input) {
5454
})
5555
.orElse(null);
5656
}
57-
},;
57+
},
58+
;
5859

5960
private static final Comparator<JsonNode> NUM_VALUE_COMPARATOR =
6061
Comparator.comparing(JsonNode::decimalValue);

0 commit comments

Comments
 (0)