Fix Java 7 missing generic type error

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=154081069
This commit is contained in:
mcilwain 2017-04-24 12:24:39 -07:00 committed by Ben McIlwain
parent f296b225af
commit e19386779c

View file

@ -105,7 +105,7 @@ public class FlowReporter {
private static final Optional<String> extractTld(String domainName) {
int index = domainName.indexOf('.');
return index == -1
? Optional.absent()
? Optional.<String>absent()
: Optional.of(Ascii.toLowerCase(domainName.substring(index + 1)));
}