Skip to content

Commit

Permalink
Remove -Xlint exclusions in the ingest-geoip module. (#40629)
Browse files Browse the repository at this point in the history
Relates to #40366
  • Loading branch information
martijnvg authored Apr 1, 2019
1 parent dbbad81 commit b4912f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions modules/ingest-geoip/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ task copyDefaultGeoIp2DatabaseFiles(type: Copy) {

project.bundlePlugin.dependsOn(copyDefaultGeoIp2DatabaseFiles)

compileJava.options.compilerArgs << "-Xlint:-rawtypes,-unchecked,-serial"
compileTestJava.options.compilerArgs << "-Xlint:-rawtypes,-unchecked"

bundlePlugin {
from("${project.buildDir}/ingest-geoip") {
into '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ public void close() throws IOException {
* reduction of CPU usage.
*/
static class GeoIpCache {
private final Cache<CacheKey, AbstractResponse> cache;
private final Cache<CacheKey<?>, AbstractResponse> cache;

//package private for testing
GeoIpCache(long maxSize) {
if (maxSize < 0) {
throw new IllegalArgumentException("geoip max cache size must be 0 or greater");
}
this.cache = CacheBuilder.<CacheKey, AbstractResponse>builder().setMaximumWeight(maxSize).build();
this.cache = CacheBuilder.<CacheKey<?>, AbstractResponse>builder().setMaximumWeight(maxSize).build();
}

<T extends AbstractResponse> T putIfAbsent(InetAddress ip, Class<T> responseType,
Expand Down

0 comments on commit b4912f0

Please sign in to comment.