Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Sep 15, 2016
1 parent c0994f6 commit ce59abd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/maxmind/geoip2/WebServiceClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,10 @@ private String userAgent() {
+ " (Java/" + System.getProperty("java.version") + ")";
}

@Override
/**
* Close any open connections and return resources to the system.
*/
@Override
public void close() throws IOException {
httpClient.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public Postal getPostal() {
* returns an empty array.
*/
public List<Subdivision> getSubdivisions() {
return new ArrayList<Subdivision>(this.subdivisions);
return new ArrayList<>(this.subdivisions);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ public String getName() {
*/
@JsonProperty("names")
public Map<String, String> getNames() {
return new HashMap<String, String>(this.names);
return new HashMap<>(this.names);
}
}
3 changes: 0 additions & 3 deletions src/main/java/com/maxmind/geoip2/record/Postal.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/**
*
*/
package com.maxmind.geoip2.record;

import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down

0 comments on commit ce59abd

Please sign in to comment.