java.util.Arrays



Project JetBrains/kotlin in file ....tests.testData.ast.importStatement.oneImport.java (2013-12-18)
@@ -0,0 +1,2 @@
+//element
+import java.util.Arrays;
\ No newline at end of file
Project JetBrains/kotlin in file ...tData.fileOrElement.importStatement.oneImport.java (2015-01-03)
@@ -0,0 +1,2 @@
+//file
+import java.util.Arrays;
\ No newline at end of file
Project JetBrains/kotlin in file ...tData.fileOrElement.importStatement.oneImport.java (2014-10-20)
@@ -0,0 +1,2 @@
+//file
+import java.util.Arrays;
\ No newline at end of file
Project SonarSource/sonarqube in file ...c.main.java.org.sonar.server.user.UserUpdater.java (2014-12-19)
@@ -47,6 +47,7 @@ import javax.annotation.Nullable;
 
 import java.io.StringWriter;
 import java.security.SecureRandom;
+import java.util.Arrays;
 import java.util.List;
 import java.util.Random;
 
@@ -257,6 +258,7 @@ public class UserUpdater implements ServerComponent {
   @CheckForNull
   private static String convertScmAccountsToCsv(@Nullable List<String> scmAccounts) {
     if (scmAccounts != null) {
+      scmAccounts.removeAll(Arrays.asList(null, ""));
       int size = scmAccounts.size();
       StringWriter writer = new StringWriter(size);
       CsvWriter csv = CsvWriter.of(writer);
Project SpringSource/spring-security-oauth in file ...ovider.token.AbstractTestDefaultTokenServices.java (2012-10-01)
@@ -4,6 +4,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.Date;
 
@@ -129,6 +130,7 @@ public abstract class AbstractTestDefaultTokenServices {
 			public ClientDetails loadClientByClientId(String clientId) throws OAuth2Exception {
 				BaseClientDetails client = new BaseClientDetails();
 				client.setRefreshTokenValiditySeconds(100);
+				client.setAuthorizedGrantTypes(Arrays.asList("authorization_code", "refresh_token"));
 				return client;
 			}
 		});