Skip to content

Commit

Permalink
Minor warnings cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 1, 2023
1 parent a17034a commit 6ec8ea6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public CacheContainerWithList() {
}
}

private static List<String> _makeStringList(String... str) {
static List<String> _makeStringList(String... str) {
List<String> list = new ArrayList<String>();
for (String s : str) {
list.add(s);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.util.StdConverter;
import com.fasterxml.jackson.datatype.guava.ModuleTestBase;

import com.google.common.collect.*;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private void _testDeserializeOk(ObjectMapper mapper,
String lowerType, String upperType) throws Exception {
String json = a2q("{'lowerEndpoint': 1, 'lowerBoundType': '"+lowerType
+"', 'upperEndpoint': 2, 'upperBoundType': '"+upperType+"'}");
Range range = mapper.readValue(json, Range.class);
Range<?> range = mapper.readValue(json, Range.class);

assertEquals(1, range.lowerEndpoint());
assertEquals(BoundType.CLOSED, range.lowerBoundType());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ static class CollectionHolder<T> {
}

static class VisitorWrapper implements JsonFormatVisitorWrapper {
private SerializerProvider serializerProvider;
private final String baseName;
private final Set<String> traversedProperties;
SerializerProvider serializerProvider;
final String baseName;
final Set<String> traversedProperties;

public VisitorWrapper(SerializerProvider serializerProvider, String baseName, Set<String> traversedProperties) {
this.serializerProvider = serializerProvider;
this.baseName = baseName;
this.traversedProperties = traversedProperties;
}

private VisitorWrapper createSubtraverser(String bn) {
VisitorWrapper createSubtraverser(String bn) {
return new VisitorWrapper(getProvider(), bn, traversedProperties);
}

Expand Down

0 comments on commit 6ec8ea6

Please sign in to comment.