Skip to content

Commit 344acb5

Browse files
committed
warnings cleanup
1 parent 911fbf4 commit 344acb5

File tree

16 files changed

+45
-55
lines changed

16 files changed

+45
-55
lines changed

afterburner/src/test/java/com/fasterxml/jackson/module/afterburner/deser/TestBuilders.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public Thing build() {
2525
static class Thing {
2626
final String foo;
2727

28-
private Thing(String foo) {
28+
Thing(String foo) {
2929
this.foo = foo;
3030
}
3131
}

afterburner/src/test/java/com/fasterxml/jackson/module/afterburner/deser/TestCollectionDeser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class TestCollectionDeser extends AfterburnerTestBase
1010
// [module-afterburner#36]
1111
static class CollectionBean
1212
{
13-
private Collection<String> x = new TreeSet<String>();
13+
Collection<String> x = new TreeSet<String>();
1414

1515
public Collection<String> getStuff() { return x; }
1616
}

afterburner/src/test/java/com/fasterxml/jackson/module/afterburner/deser/TestPolymorphic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class TestPolymorphic extends AfterburnerTestBase
1010
{
1111
static class Envelope {
1212
@JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.EXTERNAL_PROPERTY, property="class")
13-
private Object payload;
13+
Object payload;
1414

1515
public Envelope(@JsonProperty("payload") Object payload) {
1616
this.payload = payload;

afterburner/src/test/java/com/fasterxml/jackson/module/afterburner/deser/TestPolymorphicCreators.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ abstract static class AbstractRoot
5454
{
5555
private final String opt;
5656

57-
private AbstractRoot(String opt) {
57+
AbstractRoot(String opt) {
5858
this.opt = opt;
5959
}
6060

@@ -75,7 +75,7 @@ public final String getOpt() {
7575
}
7676

7777
static final class One extends AbstractRoot {
78-
private One(String opt) {
78+
One(String opt) {
7979
super(opt);
8080
}
8181

afterburner/src/test/java/com/fasterxml/jackson/module/afterburner/deser/merge/NodeMergeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
public class NodeMergeTest extends AfterburnerTestBase
1111
{
12-
private final static ObjectMapper MAPPER = mapperBuilder()
12+
final static ObjectMapper MAPPER = mapperBuilder()
1313
// 26-Oct-2016, tatu: Make sure we'll report merge problems by default
1414
.disable(MapperFeature.IGNORE_MERGE_FOR_UNMERGEABLE)
1515
.build();

guice/src/test/java/com/fasterxml/jackson/module/guice/ExtendInjectableTest.java

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,18 @@
1818
*/
1919
public class ExtendInjectableTest
2020
{
21-
22-
private final ConstructorDependency constructorInjected = new ConstructorDependency();
23-
private final ConstructorDependency constructorInjectedWithCustomAnnotation = new ConstructorDependency();
24-
private final ConstructorDependency constructorInjectedWithGuiceAnnotation = new ConstructorDependency();
25-
private final ConstructorDependency constructorInjectedWithJavaAnnotation = new ConstructorDependency();
26-
private final FieldDependency fieldInjected = new FieldDependency();
27-
private final FieldDependency fieldInjectedWithCustomAnnotation = new FieldDependency();
28-
private final FieldDependency fieldInjectedWithGuiceAnnotation = new FieldDependency();
29-
private final FieldDependency fieldInjectedWithJavaAnnotation = new FieldDependency();
30-
private final MethodDependency methodInjected = new MethodDependency();
31-
private final MethodDependency methodInjectedWithCustomAnnotation = new MethodDependency();
32-
private final MethodDependency methodInjectedWithGuiceAnnotation = new MethodDependency();
33-
private final MethodDependency methodInjectedWithJavaAnnotation = new MethodDependency();
21+
final ConstructorDependency constructorInjected = new ConstructorDependency();
22+
final ConstructorDependency constructorInjectedWithCustomAnnotation = new ConstructorDependency();
23+
final ConstructorDependency constructorInjectedWithGuiceAnnotation = new ConstructorDependency();
24+
final ConstructorDependency constructorInjectedWithJavaAnnotation = new ConstructorDependency();
25+
final FieldDependency fieldInjected = new FieldDependency();
26+
final FieldDependency fieldInjectedWithCustomAnnotation = new FieldDependency();
27+
final FieldDependency fieldInjectedWithGuiceAnnotation = new FieldDependency();
28+
final FieldDependency fieldInjectedWithJavaAnnotation = new FieldDependency();
29+
final MethodDependency methodInjected = new MethodDependency();
30+
final MethodDependency methodInjectedWithCustomAnnotation = new MethodDependency();
31+
final MethodDependency methodInjectedWithGuiceAnnotation = new MethodDependency();
32+
final MethodDependency methodInjectedWithJavaAnnotation = new MethodDependency();
3433

3534
@Test
3635
public void testModulesRegisteredThroughInjectionWithKey() throws Exception
@@ -96,9 +95,9 @@ private void verifyInjections(String message, InjectableBean injected)
9695
static class ReadableBean extends InjectableBean {
9796

9897
@JsonProperty("field_value")
99-
private String fieldValue;
100-
private String methodValue;
101-
private final String constructorValue;
98+
String fieldValue;
99+
String methodValue;
100+
final String constructorValue;
102101

103102
@JsonCreator
104103
private ReadableBean(@JacksonInject ConstructorDependency constructorInjected,
@@ -131,30 +130,30 @@ static class FieldDependency {};
131130
static class InjectableBean
132131
{
133132
@Inject
134-
private FieldDependency fieldInjected;
135-
private MethodDependency methodInjected;
136-
private final ConstructorDependency constructorInjected;
133+
FieldDependency fieldInjected;
134+
MethodDependency methodInjected;
135+
final ConstructorDependency constructorInjected;
137136

138137
@JacksonInject
139138
@Inject
140139
@javax.inject.Named("javax")
141-
private FieldDependency fieldInjectedWithJavaAnnotation;
142-
private MethodDependency methodInjectedWithJavaAnnotation;
143-
private final ConstructorDependency constructorInjectedWithJavaAnnotation;
140+
FieldDependency fieldInjectedWithJavaAnnotation;
141+
MethodDependency methodInjectedWithJavaAnnotation;
142+
final ConstructorDependency constructorInjectedWithJavaAnnotation;
144143

145144
@JacksonInject
146145
@Inject
147146
@com.google.inject.name.Named("guice")
148-
private FieldDependency fieldInjectedWithGuiceAnnotation;
149-
private MethodDependency methodInjectedWithGuiceAnnotation;
150-
private final ConstructorDependency constructorInjectedWithGuiceAnnotation;
147+
FieldDependency fieldInjectedWithGuiceAnnotation;
148+
MethodDependency methodInjectedWithGuiceAnnotation;
149+
final ConstructorDependency constructorInjectedWithGuiceAnnotation;
151150

152151
@JacksonInject
153152
@Inject
154153
@Ann
155-
private FieldDependency fieldInjectedWithCustomAnnotation;
156-
private MethodDependency methodInjectedWithCustomAnnotation;
157-
private final ConstructorDependency constructorInjectedWithCustomAnnotation;
154+
FieldDependency fieldInjectedWithCustomAnnotation;
155+
MethodDependency methodInjectedWithCustomAnnotation;
156+
final ConstructorDependency constructorInjectedWithCustomAnnotation;
158157

159158
@Inject // this is simply to make sure we *can* build this correctly
160159
protected InjectableBean(ConstructorDependency constructorInjected,

guice/src/test/java/com/fasterxml/jackson/module/guice/ObjectMapperModuleTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
package com.fasterxml.jackson.module.guice;
22

3+
import java.io.IOException;
4+
import java.math.BigInteger;
5+
36
import com.fasterxml.jackson.annotation.JacksonInject;
47
import com.fasterxml.jackson.annotation.JsonProperty;
8+
59
import com.fasterxml.jackson.core.JsonGenerator;
610
import com.fasterxml.jackson.core.JsonProcessingException;
11+
712
import com.fasterxml.jackson.databind.JsonSerializer;
813
import com.fasterxml.jackson.databind.ObjectMapper;
914
import com.fasterxml.jackson.databind.SerializerProvider;
1015
import com.fasterxml.jackson.databind.module.SimpleModule;
11-
import com.fasterxml.jackson.module.guice.ObjectMapperModule;
16+
1217
import com.google.inject.Binder;
1318
import com.google.inject.Guice;
1419
import com.google.inject.Injector;
@@ -19,9 +24,6 @@
1924
import org.junit.Assert;
2025
import org.junit.Test;
2126

22-
import java.io.IOException;
23-
import java.math.BigInteger;
24-
2527
public class ObjectMapperModuleTest
2628
{
2729
@Test

jaxb/src/test/java/com/fasterxml/jackson/module/jaxb/BaseJaxbTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair;
99
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;
1010
import com.fasterxml.jackson.databind.json.JsonMapper;
11-
import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector;
1211

1312
public abstract class BaseJaxbTest
1413
extends junit.framework.TestCase

jaxb/src/test/java/com/fasterxml/jackson/module/jaxb/TestVersions.java

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

66
import com.fasterxml.jackson.databind.type.TypeFactory;
77

8-
import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector;
9-
108
public class TestVersions extends BaseJaxbTest
119
{
1210
public void testVersions()

jaxb/src/test/java/com/fasterxml/jackson/module/jaxb/adapters/MapType.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.fasterxml.jackson.module.jaxb.adapters;
22

3-
import com.fasterxml.jackson.module.jaxb.adapters.EntryType;
4-
53
import java.util.List;
64

75
/**

0 commit comments

Comments
 (0)