Remove redundant specification of type arguments

Change-Id: I5b084440bae3ad66604acb7308426ba2119ce7f3
This commit is contained in:
David Pursehouse 2016-05-20 12:31:15 +09:00
parent 3931c16bdb
commit 83ab340d3f
3 changed files with 4 additions and 4 deletions

View File

@ -280,7 +280,7 @@ public class H2CacheImpl<K, V> extends AbstractLoadingCache<K, V> implements
}
}
final ValueHolder<V> h = new ValueHolder<V>(loader.call());
final ValueHolder<V> h = new ValueHolder<>(loader.call());
h.created = TimeUtil.nowMs();
executor.execute(new Runnable() {
@Override

View File

@ -178,7 +178,7 @@ class RelatedChangesTab implements IsWidget {
rows = new ArrayList<>(changes.length());
connectedPos = changes.length() - 1;
connected = showIndirectAncestors
? new HashSet<String>(Math.max(changes.length() * 4 / 3, 16))
? new HashSet<>(Math.max(changes.length() * 4 / 3, 16))
: null;
}

View File

@ -89,8 +89,8 @@ public class GetReflog implements RestReadView<BranchResource> {
limit > 0 ? r.getReverseEntries(limit) : r.getReverseEntries();
} else {
entries = limit > 0
? new ArrayList<ReflogEntry>(limit)
: new ArrayList<ReflogEntry>();
? new ArrayList<>(limit)
: new ArrayList<>();
for (ReflogEntry e : r.getReverseEntries()) {
Timestamp timestamp = new Timestamp(e.getWho().getWhen().getTime());
if ((from == null || from.before(timestamp)) &&