diff options
Diffstat (limited to 'org.eclipse.egit.core/src/org/eclipse/egit/core/internal/gerrit/GerritUtil.java')
-rw-r--r-- | org.eclipse.egit.core/src/org/eclipse/egit/core/internal/gerrit/GerritUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/gerrit/GerritUtil.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/gerrit/GerritUtil.java index d31021df94..48f88e1fa3 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/gerrit/GerritUtil.java +++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/gerrit/GerritUtil.java @@ -106,7 +106,7 @@ public class GerritUtil { */ public static void configurePushURI(RemoteConfig remoteConfig, URIish pushURI) { - List<URIish> pushURIs = new ArrayList<URIish>( + List<URIish> pushURIs = new ArrayList<>( remoteConfig.getPushURIs()); for (URIish urIish : pushURIs) { remoteConfig.removePushURI(urIish); @@ -124,7 +124,7 @@ public class GerritUtil { */ public static void configurePushRefSpec(RemoteConfig remoteConfig, String gerritBranch) { - List<RefSpec> pushRefSpecs = new ArrayList<RefSpec>( + List<RefSpec> pushRefSpecs = new ArrayList<>( remoteConfig.getPushRefSpecs()); for (RefSpec refSpec : pushRefSpecs) { remoteConfig.removePushRefSpec(refSpec); |