java.io.OutputStream



Project JetBrains/intellij-community in file ...tests.src.com.intellij.psi.ConstantValuesTest.java (2007-10-05)
@@ -12,7 +12,6 @@ import com.intellij.testFramework.PsiTestCase;
 import com.intellij.testFramework.PsiTestUtil;
 
 import java.io.IOException;
-import java.io.OutputStream;
 
 public class ConstantValuesTest extends PsiTestCase{
   private static final Logger LOG = Logger.getInstance("#com.intellij.psi.ConstantValuesTest");
@@ -67,6 +66,8 @@ public class ConstantValuesTest extends PsiTestCase{
 
     LOG.assertTrue(file.isValid());
     myClass = file.getClasses()[0];
+
+    LOG.assertTrue(myClass.isValid());
     super.invokeTestRunnable(runnable);
   }
 
Project ninjaframework/ninja in file ...19d382f/ninja-core.src.main.java.ninja.Result.java (2014-05-16)
@@ -16,24 +16,24 @@
 
 package ninja;
 
-import java.io.OutputStream;
+import java.io.IOException;
+import java.io.Writer;
 import java.util.AbstractMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
 
 import ninja.utils.DateUtil;
+import ninja.utils.NoHttpBody;
 import ninja.utils.ResponseStreams;
 import ninja.utils.SwissKnife;
 
-import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
-import java.io.IOException;
-import java.io.Writer;
-import ninja.utils.NoHttpBody;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import com.google.common.collect.Lists;
+import com.google.common.collect.Maps;
+
 public class Result {
     
     private final Logger logger = LoggerFactory.getLogger(Result.class);
@@ -53,6 +53,7 @@ public class Result {
     public static int SC_307_TEMPORARY_REDIRECT = 307;
 
     public static int SC_400_BAD_REQUEST = 400;
+    public static int SC_401_UNAUTHORIZED = 401;
     public static int SC_403_FORBIDDEN = 403;
     public static int SC_404_NOT_FOUND = 404;
 
Project JetBrains/intellij-community in file ...til.src.com.intellij.util.containers.ByteTrie.java (2006-04-19)
@@ -1,15 +1,14 @@
 package com.intellij.util.containers;
 
-import java.util.ArrayList;
-import java.io.UnsupportedEncodingException;
-import java.io.ByteArrayOutputStream;
-import java.io.OutputStream;
-
 import org.jetbrains.annotations.NonNls;
 
+import java.io.ByteArrayOutputStream;
+import java.io.UnsupportedEncodingException;
+import java.util.ArrayList;
+
 public class ByteTrie {
   private static final String EMPTY_STRING = "";
-  @NonNls private static final String UTF_8_CHARSET_NAME = "UTF-8".intern();
+  @NonNls private static final String UTF_8_CHARSET_NAME = "UTF-8";
   private final ArrayList<Node> myAllNodes;
 
   private class Node {
Project gradle/gradle in file ...alization.CommandLine2StartParameterConverter.java (2010-10-12)
@@ -18,8 +18,6 @@ package org.gradle.initialization;
 import org.gradle.CommandLineArgumentException;
 import org.gradle.StartParameter;
 
-import java.io.OutputStream;
-
 /**
  * @author Hans Dockter
  */
@@ -28,5 +26,5 @@ public interface CommandLine2StartParameterConverter {
 
     void convert(String[] args, StartParameter parameter) throws CommandLineArgumentException;
 
-    void showHelp(OutputStream out);
+    void configure(CommandLineParser parser);
 }
Project square/okhttp in file ...kio.src.test.java.okio.RealBufferedSourceTest.java (2014-03-08)
@@ -18,7 +18,6 @@ package okio;
 import java.io.EOFException;
 import java.io.IOException;
 import java.io.InputStream;
-import java.io.OutputStream;
 import java.util.Arrays;
 import org.junit.Test;
 
@@ -163,7 +162,7 @@ public final class RealBufferedSourceTest {
 
     // Test a sample set of methods.
     try {
-      bufferedSource.seek((byte) 1);
+      bufferedSource.indexOf((byte) 1);
       fail();
     } catch (IllegalStateException expected) {
     }