mirror of
https://github.com/google/nomulus
synced 2026-01-04 04:04:22 +00:00
Fix Java 7 missing generic type error
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154081069
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user