Skip to content

Commit 88fa1dc

Browse files
committed
Making classes used in test private so that they do not soak outside.
1 parent c540e07 commit 88fa1dc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/schema/PolymorphicTypeAnnotationsTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public class PolymorphicTypeAnnotationsTest {
1515

1616
private static final AvroMapper MAPPER = AvroMapper.builder().build();
17-
// it is easier maintain string schema representation when namespace is constant, rather than being inferend from this class package name
17+
// it is easier maintain string schema representation when namespace is constant, rather than being inferred from this class package name
1818
private static final String TEST_NAMESPACE = "test";
1919

2020
@JsonSubTypes({
@@ -28,11 +28,11 @@ private static abstract class AbstractMammal implements AnimalInterface {
2828
public int legs;
2929
}
3030

31-
static class Cat extends AbstractMammal {
31+
private static class Cat extends AbstractMammal {
3232
public String color;
3333
}
3434

35-
static class Dog extends AbstractMammal {
35+
private static class Dog extends AbstractMammal {
3636
public int size;
3737
}
3838

@@ -58,17 +58,17 @@ public void subclasses_of_interface_test() throws JsonMappingException {
5858
@JsonSubTypes.Type(value = Pear.class),
5959
})
6060
@AvroNamespace(TEST_NAMESPACE) // @AvroNamespace makes it easier to create schema string representation
61-
static class Fruit {
61+
private static class Fruit {
6262
public boolean eatable;
6363
}
6464

6565
private static final String FRUIT_ITSELF_SCHEMA_STR = "{\"type\":\"record\",\"name\":\"Fruit\",\"namespace\":\"test\",\"fields\":[{\"name\":\"eatable\",\"type\":\"boolean\"}]}";
6666

67-
static class Apple extends Fruit {
67+
private static class Apple extends Fruit {
6868
public String color;
6969
}
7070

71-
static class Pear extends Fruit {
71+
private static class Pear extends Fruit {
7272
public int seeds;
7373
}
7474

0 commit comments

Comments
 (0)