Remove redundant specification of type arguments
Change-Id: I5b084440bae3ad66604acb7308426ba2119ce7f3
This commit is contained in:
parent
3931c16bdb
commit
83ab340d3f
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)) &&
|
||||
|
Loading…
Reference in New Issue
Block a user