com.google.common.collect.Setsjava.util.HashSet



Project Athou/commafeed in file ...rc.main.java.com.commafeed.backend.model.User.java (2014-12-12)
@@ -1,6 +1,7 @@
 package com.commafeed.backend.model;
 
 import java.util.Date;
+import java.util.HashSet;
 import java.util.Set;
 
 import javax.persistence.CascadeType;
@@ -19,7 +20,6 @@ import org.apache.commons.lang3.time.DateUtils;
 import org.hibernate.annotations.Cascade;
 
 import com.commafeed.backend.model.UserRole.Role;
-import com.google.common.collect.Sets;
 
 @Entity
 @Table(name = "USERS")
@@ -61,7 +61,7 @@ public class User extends AbstractModel {
 	@OneToMany(mappedBy = "user", cascade = { CascadeType.PERSIST, CascadeType.REMOVE })
 	@Cascade({ org.hibernate.annotations.CascadeType.PERSIST, org.hibernate.annotations.CascadeType.SAVE_UPDATE,
 			org.hibernate.annotations.CascadeType.REMOVE })
-	private Set<UserRole> roles = Sets.newHashSet();
+	private Set<UserRole> roles = new HashSet<>();
 
 	@OneToMany(mappedBy = "user", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
 	private Set<FeedSubscription> subscriptions;
Project JetBrains/kotlin in file ....jet.lang.resolve.java.scope.JavaPackageScope.java (2013-08-16)
@@ -16,7 +16,6 @@
 
 package org.jetbrains.jet.lang.resolve.java.scope;
 
-import com.google.common.collect.Sets;
 import com.intellij.openapi.progress.ProgressIndicatorProvider;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.jet.lang.descriptors.*;
@@ -29,6 +28,7 @@ import org.jetbrains.jet.lang.resolve.name.Name;
 
 import java.util.Collection;
 import java.util.Collections;
+import java.util.HashSet;
 import java.util.Set;
 
 import static org.jetbrains.jet.lang.resolve.java.DescriptorSearchRule.IGNORE_KOTLIN_SOURCES;
@@ -84,7 +84,7 @@ public final class JavaPackageScope extends JavaBaseScope {
 
     @NotNull
     private Collection<DeclarationDescriptor> computeAllPackageDeclarations() {
-        Collection<DeclarationDescriptor> result = Sets.newHashSet();
+        Collection<DeclarationDescriptor> result = new HashSet<DeclarationDescriptor>();
 
         for (JavaPackage subPackage : javaPackage.getSubPackages()) {
             NamespaceDescriptor childNs = memberResolver.resolveNamespace(subPackage.getFqName(), IGNORE_KOTLIN_SOURCES);
Project dim-s/jphp in file ....regenix.jphp.syntax.generators.ExprGenerator.java (2013-12-22)
@@ -1,6 +1,5 @@
 package ru.regenix.jphp.syntax.generators;
 
-import com.google.common.collect.Sets;
 import ru.regenix.jphp.common.Messages;
 import ru.regenix.jphp.common.Separator;
 import ru.regenix.jphp.exceptions.FatalException;
@@ -23,6 +22,7 @@ import ru.regenix.jphp.tokenizer.token.expr.value.VariableExprToken;
 import ru.regenix.jphp.tokenizer.token.stmt.*;
 
 import java.util.ArrayList;
+import java.util.HashSet;
 import java.util.List;
 import java.util.ListIterator;
 
@@ -257,7 +257,7 @@ public class ExprGenerator extends Generator<ExprStmtToken> {
             iterator.next();
         } while (true);
 
-        result.setIterationLocal(Sets.newHashSet(analyzer.getLocalScope()));
+        result.setIterationLocal(new HashSet<VariableExprToken>(analyzer.getLocalScope()));
 
         nextAndExpected(iterator, BraceExprToken.class);
         BodyStmtToken body = analyzer.generator(BodyGenerator.class).getToken(
Project jphp-compiler/jphp in file ....regenix.jphp.syntax.generators.ExprGenerator.java (2013-12-22)
@@ -1,6 +1,5 @@
 package ru.regenix.jphp.syntax.generators;
 
-import com.google.common.collect.Sets;
 import ru.regenix.jphp.common.Messages;
 import ru.regenix.jphp.common.Separator;
 import ru.regenix.jphp.exceptions.FatalException;
@@ -23,6 +22,7 @@ import ru.regenix.jphp.tokenizer.token.expr.value.VariableExprToken;
 import ru.regenix.jphp.tokenizer.token.stmt.*;
 
 import java.util.ArrayList;
+import java.util.HashSet;
 import java.util.List;
 import java.util.ListIterator;
 
@@ -257,7 +257,7 @@ public class ExprGenerator extends Generator<ExprStmtToken> {
             iterator.next();
         } while (true);
 
-        result.setIterationLocal(Sets.newHashSet(analyzer.getLocalScope()));
+        result.setIterationLocal(new HashSet<VariableExprToken>(analyzer.getLocalScope()));
 
         nextAndExpected(iterator, BraceExprToken.class);
         BodyStmtToken body = analyzer.generator(BodyGenerator.class).getToken(
Project jersey/jersey in file ...part.internal.MultiPartHeaderModificationTest.java (2014-01-31)
@@ -39,7 +39,19 @@
  */
 package org.glassfish.jersey.media.multipart.internal;
 
-import com.google.common.collect.Sets;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.logging.Level;
+import java.util.logging.LogRecord;
+
+import javax.ws.rs.BadRequestException;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.MediaType;
+
 import org.glassfish.jersey.apache.connector.ApacheConnectorProvider;
 import org.glassfish.jersey.client.ClientConfig;
 import org.glassfish.jersey.client.HttpUrlConnectorProvider;
@@ -48,21 +60,10 @@ import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
 import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
 import org.glassfish.jersey.media.multipart.MultiPart;
 import org.glassfish.jersey.test.TestProperties;
+
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
-
-import javax.ws.rs.BadRequestException;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.client.WebTarget;
-import javax.ws.rs.core.Application;
-import javax.ws.rs.core.MediaType;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.LogRecord;
-
 import static org.hamcrest.CoreMatchers.containsString;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
@@ -102,7 +103,9 @@ public class MultiPartHeaderModificationTest extends MultiPartJerseyTest {
 
     @Override
     protected Set<Class<?>> getResourceClasses() {
-        return Sets.<Class<?>>newHashSet(MultiPartResource.class);
+        final HashSet<Class<?>> classes = new HashSet<Class<?>>();
+        classes.add(MultiPartResource.class);
+        return classes;
     }
 
     @Override