Skip to content

Commit 82c377e

Browse files
committed
Warnings cleanup (unneeded imports, synthetic accessors)
1 parent 8a30a50 commit 82c377e

File tree

14 files changed

+18
-36
lines changed

14 files changed

+18
-36
lines changed

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/AmbiguousUnionWriteTest.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
package com.fasterxml.jackson.dataformat.avro;
22

3-
import com.fasterxml.jackson.dataformat.avro.AvroMapper;
4-
import com.fasterxml.jackson.dataformat.avro.AvroSchema;
5-
6-
/* 23-Aug-2017, tatu: There was some confusion on whether potential ambiguity
7-
* might be problematic (compared to actual one) -- this test verifies
8-
* it should not be.
9-
*/
3+
// 23-Aug-2017, tatu: There was some confusion on whether potential ambiguity
4+
// might be problematic (compared to actual one) -- this test verifies
5+
// it should not be.
106
public class AmbiguousUnionWriteTest extends AvroTestBase
117
{
128
protected final String SCHEMA_WITH_AMBIGUITY = aposToQuotes("{\n"

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/NestedMapTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
import com.fasterxml.jackson.databind.ObjectMapper;
99

10-
import com.fasterxml.jackson.dataformat.avro.AvroMapper;
11-
import com.fasterxml.jackson.dataformat.avro.AvroSchema;
1210
import com.fasterxml.jackson.dataformat.avro.schema.AvroSchemaGenerator;
1311

1412
public class NestedMapTest extends AvroTestBase

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/RootEmptyRecord177Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
import com.fasterxml.jackson.annotation.JsonAutoDetect;
44

5-
import com.fasterxml.jackson.dataformat.avro.AvroMapper;
6-
import com.fasterxml.jackson.dataformat.avro.AvroSchema;
7-
85
public class RootEmptyRecord177Test extends AvroTestBase
96
{
107
private final AvroMapper MAPPER = getMapper();

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/SerializeGeneratedTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
44

5-
import com.fasterxml.jackson.dataformat.avro.AvroSchema;
65
import com.fasterxml.jackson.dataformat.avro.gen.Event35;
76
import com.fasterxml.jackson.dataformat.avro.gen.Event35Id;
87

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/SimpleGenerationTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.fasterxml.jackson.core.JsonGenerator;
1010
import com.fasterxml.jackson.databind.JsonMappingException;
1111
import com.fasterxml.jackson.databind.ObjectMapper;
12-
import com.fasterxml.jackson.dataformat.avro.AvroFactory;
1312

1413
public class SimpleGenerationTest extends AvroTestBase
1514
{

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/interop/InteropTestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public static ParameterizedType type(Class<?> baseClass, Type... parameters) {
5050
return new ParameterizedTypeImpl(baseClass, parameters);
5151
}
5252

53-
private static class ParameterizedTypeImpl implements ParameterizedType {
53+
static class ParameterizedTypeImpl implements ParameterizedType {
5454
private final Class<?> rawType;
5555
private final Type[] typeBindings;
5656

57-
private ParameterizedTypeImpl(Class<?> rawType, Type[] typeBindings) {
57+
ParameterizedTypeImpl(Class<?> rawType, Type[] typeBindings) {
5858
this.rawType = rawType;
5959
this.typeBindings = typeBindings;
6060
}

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/interop/annotations/AvroEncodeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static class CustomComponent {
5353
public Long longValue;
5454

5555
@AvroEncode(using = UuidAsBytesAvroEncoding.class)
56-
private UUID uuidValue;
56+
UUID uuidValue;
5757

5858
protected CustomComponent() { }
5959
}

ion/src/test/java/com/fasterxml/jackson/dataformat/ion/IonParserTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616

1717
import com.fasterxml.jackson.core.JsonParser;
1818
import com.fasterxml.jackson.core.JsonToken;
19-
import com.fasterxml.jackson.dataformat.ion.IonFactory;
20-
import com.fasterxml.jackson.dataformat.ion.IonParser;
2119

2220
import org.junit.Assert;
2321

24-
import com.amazon.ion.IonDecimal;
2522
import com.amazon.ion.IonReader;
2623
import com.amazon.ion.IonSystem;
2724
import com.amazon.ion.IonValue;

ion/src/test/java/com/fasterxml/jackson/dataformat/ion/PolymorphicRoundtripTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver;
4141
import com.fasterxml.jackson.databind.module.SimpleModule;
4242
import com.fasterxml.jackson.databind.type.TypeFactory;
43-
import com.fasterxml.jackson.dataformat.ion.IonObjectMapper;
4443
import com.fasterxml.jackson.dataformat.ion.ionvalue.IonValueMapper;
4544
import com.fasterxml.jackson.dataformat.ion.polymorphism.IonAnnotationIntrospector;
4645
import com.fasterxml.jackson.dataformat.ion.polymorphism.IonAnnotationTypeResolverBuilder;
@@ -60,9 +59,9 @@ public class PolymorphicRoundtripTest {
6059
* ClassNameIonAnnotationIntrospector, and MultipleClassNameIdResolver (where they actually get used). I think
6160
* this is (a little) easier to understand.
6261
*/
63-
private boolean resolveAllTypes = false; // apply resolver under test to all types, not just annotated ones
64-
private String preferredTypeId = null; // if asked to resolve from multiple ids, choose this one.
65-
private IonSystem ionSystem = IonSystemBuilder.standard().build();
62+
boolean resolveAllTypes = false; // apply resolver under test to all types, not just annotated ones
63+
String preferredTypeId = null; // if asked to resolve from multiple ids, choose this one.
64+
IonSystem ionSystem = IonSystemBuilder.standard().build();
6665

6766
@Before
6867
public void reset() {

ion/src/test/java/com/fasterxml/jackson/dataformat/ion/polymorphism/IonAnnotationTypeDeserializerWithClassNameAnnotationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ protected TypeIdResolver defaultIdResolver(MapperConfig<?> config, JavaType base
107107
}
108108
}
109109

110-
private static class ClassA {
110+
static class ClassA {
111111
public int value;
112112
}
113113

114-
private static class ClassB<T> {
114+
static class ClassB<T> {
115115
public T content;
116116
}
117117
}

0 commit comments

Comments
 (0)