Use native constructors instead of Guava to instantiate empty collections
It's not necessary to use Guava's helper methods when instantiating empty collections. Just use the native constructors. Change-Id: I7f454909b15924ee49e149edf9f053da9f718502
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
|
||||
package com.google.gerrit.server.git;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.gerrit.server.config.RequestScopedReviewDbProvider;
|
||||
import com.google.gerrit.server.util.RequestContext;
|
||||
import com.google.gerrit.server.util.ThreadLocalRequestContext;
|
||||
@@ -25,6 +24,7 @@ import com.google.inject.OutOfScopeException;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.Scope;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
@@ -37,7 +37,7 @@ public class PerThreadRequestScope {
|
||||
private final Map<Key<?>, Object> map;
|
||||
|
||||
private Context() {
|
||||
map = Maps.newHashMap();
|
||||
map = new HashMap<>();
|
||||
}
|
||||
|
||||
private <T> T get(Key<T> key, Provider<T> creator) {
|
||||
|
||||
Reference in New Issue
Block a user