Skip to content

Commit ce59abd

Browse files
committed
Minor code cleanup
1 parent c0994f6 commit ce59abd

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/main/java/com/maxmind/geoip2/WebServiceClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,10 @@ private String userAgent() {
432432
+ " (Java/" + System.getProperty("java.version") + ")";
433433
}
434434

435-
@Override
436435
/**
437436
* Close any open connections and return resources to the system.
438437
*/
438+
@Override
439439
public void close() throws IOException {
440440
httpClient.close();
441441
}

src/main/java/com/maxmind/geoip2/model/AbstractCityResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public Postal getPostal() {
6767
* returns an empty array.
6868
*/
6969
public List<Subdivision> getSubdivisions() {
70-
return new ArrayList<Subdivision>(this.subdivisions);
70+
return new ArrayList<>(this.subdivisions);
7171
}
7272

7373
/**

src/main/java/com/maxmind/geoip2/record/AbstractNamedRecord.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ public String getName() {
5757
*/
5858
@JsonProperty("names")
5959
public Map<String, String> getNames() {
60-
return new HashMap<String, String>(this.names);
60+
return new HashMap<>(this.names);
6161
}
6262
}

src/main/java/com/maxmind/geoip2/record/Postal.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/**
2-
*
3-
*/
41
package com.maxmind.geoip2.record;
52

63
import com.fasterxml.jackson.annotation.JsonProperty;

0 commit comments

Comments
 (0)