Disable "UseOfSystemOutOrSystemErr" inspection in tests

This commit is contained in:
Alexander Udalov
2013-10-28 16:30:31 +04:00
parent cdecbc0915
commit a35f285bcf
8 changed files with 18 additions and 9 deletions
@@ -41,7 +41,6 @@ public class CliBaseTest {
@NotNull
private static String executeCompilerGrabOutput(@NotNull CLICompiler<?> compiler, @NotNull String[] args) {
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
//noinspection UseOfSystemOutOrSystemErr
PrintStream origOut = System.out;
try {
System.setOut(new PrintStream(bytes));
@@ -79,7 +79,6 @@ public class ScriptTest extends CliBaseTest {
@NotNull List<JetScriptDefinition> scriptDefinitions
) {
KotlinPaths paths = new KotlinPathsFromHomeDir(new File("dist/kotlinc"));
//noinspection UseOfSystemOutOrSystemErr
GroupingMessageCollector messageCollector =
new GroupingMessageCollector(new PrintingMessageCollector(System.err, MessageRenderer.PLAIN, false));
Disposable rootDisposable = Disposer.newDisposable();
@@ -129,7 +129,6 @@ public class TestlibTest extends UsefulTestCase {
if ("junit/framework/Test".equals(typeMapper.mapClass(superClass).getInternalName())) {
String name = typeMapper.mapClass(descriptor).getInternalName();
//noinspection UseOfSystemOutOrSystemErr
System.out.println(name);
@SuppressWarnings("unchecked")