mirror of
https://github.com/google/nomulus
synced 2026-08-17 12:46:11 +00:00
Remove unnecessary explicit generic type declarations
They can be inferred correctly even in Java 7, and display as compiler warnings in IntelliJ. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=173451087
This commit is contained in:
@@ -171,8 +171,7 @@ public final class RegistrarCreditBalance extends ImmutableObject implements Bui
|
||||
ofy().load().type(RegistrarCreditBalance.class).ancestor(registrarCredit)) {
|
||||
// Create the submap at this key if it doesn't exist already.
|
||||
Map<DateTime, Money> submap =
|
||||
Optional.ofNullable(map.get(balance.effectiveTime))
|
||||
.orElse(new HashMap<DateTime, Money>());
|
||||
Optional.ofNullable(map.get(balance.effectiveTime)).orElse(new HashMap<>());
|
||||
submap.put(balance.writtenTime, balance.amount);
|
||||
map.put(balance.effectiveTime, submap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user