diff --git a/.idea/inspectionProfiles/idea_default.xml b/.idea/inspectionProfiles/idea_default.xml index fd058a78b5b..31ec7863b63 100644 --- a/.idea/inspectionProfiles/idea_default.xml +++ b/.idea/inspectionProfiles/idea_default.xml @@ -360,7 +360,7 @@ - + diff --git a/compiler/tests/org/jetbrains/jet/cli/jvm/CliBaseTest.java b/compiler/tests/org/jetbrains/jet/cli/jvm/CliBaseTest.java index bdf54e07c06..06c9104caaf 100644 --- a/compiler/tests/org/jetbrains/jet/cli/jvm/CliBaseTest.java +++ b/compiler/tests/org/jetbrains/jet/cli/jvm/CliBaseTest.java @@ -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)); diff --git a/compiler/tests/org/jetbrains/jet/cli/jvm/ScriptTest.java b/compiler/tests/org/jetbrains/jet/cli/jvm/ScriptTest.java index 9fdbba26e34..90ec4bc6f8b 100644 --- a/compiler/tests/org/jetbrains/jet/cli/jvm/ScriptTest.java +++ b/compiler/tests/org/jetbrains/jet/cli/jvm/ScriptTest.java @@ -79,7 +79,6 @@ public class ScriptTest extends CliBaseTest { @NotNull List 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(); diff --git a/compiler/tests/org/jetbrains/jet/codegen/TestlibTest.java b/compiler/tests/org/jetbrains/jet/codegen/TestlibTest.java index 44280d11821..6f674a0a406 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/TestlibTest.java +++ b/compiler/tests/org/jetbrains/jet/codegen/TestlibTest.java @@ -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") diff --git a/generators/src/org/jetbrains/jet/generators/builtins/BuiltInsSerializer.java b/generators/src/org/jetbrains/jet/generators/builtins/BuiltInsSerializer.java index 94efbd7587e..25ed2fb58dd 100644 --- a/generators/src/org/jetbrains/jet/generators/builtins/BuiltInsSerializer.java +++ b/generators/src/org/jetbrains/jet/generators/builtins/BuiltInsSerializer.java @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2013 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.jetbrains.jet.generators.builtins; import com.google.common.collect.ImmutableSet; @@ -27,7 +43,6 @@ import java.util.ArrayList; import java.util.List; import java.util.regex.Pattern; -@SuppressWarnings("UseOfSystemOutOrSystemErr") public class BuiltInsSerializer { private static final String BUILT_INS_SRC_DIR = "idea/builtinsSrc"; public static final String DEST_DIR = "compiler/frontend/builtins"; diff --git a/idea/tests/org/jetbrains/jet/plugin/highlighter/AbstractHighlightingTest.java b/idea/tests/org/jetbrains/jet/plugin/highlighter/AbstractHighlightingTest.java index c9162b5723d..bb4da6dc672 100644 --- a/idea/tests/org/jetbrains/jet/plugin/highlighter/AbstractHighlightingTest.java +++ b/idea/tests/org/jetbrains/jet/plugin/highlighter/AbstractHighlightingTest.java @@ -51,7 +51,6 @@ public abstract class AbstractHighlightingTest extends LightCodeInsightFixtureTe myFixture.checkHighlighting(checkWarnings, checkInfos, checkWeakWarnings); } catch (FileComparisonFailure e) { - //noinspection UseOfSystemOutOrSystemErr System.out.println(getFileWithTextAttributesKeys()); throw e; diff --git a/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoUtils.java b/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoUtils.java index 77eb87ac8e2..9af90be75fa 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoUtils.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoUtils.java @@ -135,7 +135,6 @@ public final class RhinoUtils { String problems = lintIt(context, filename, scope); if (problems != null) { //fail(problems); - //noinspection UseOfSystemOutOrSystemErr System.out.print(problems); } } diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestBase.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestBase.java index 839f7631751..c998e629228 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestBase.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestBase.java @@ -21,8 +21,8 @@ import com.google.common.collect.Lists; import com.intellij.util.ArrayUtil; import org.jetbrains.annotations.NotNull; import org.jetbrains.jet.cli.common.ExitCode; -import org.jetbrains.jet.cli.js.K2JSCompiler; import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments; +import org.jetbrains.jet.cli.js.K2JSCompiler; import org.jetbrains.k2js.config.EcmaVersion; import org.jetbrains.k2js.test.SingleFileTranslationTest; import org.jetbrains.k2js.test.utils.LibraryFilePathsUtil; @@ -30,7 +30,6 @@ import org.jetbrains.k2js.test.utils.LibraryFilePathsUtil; import java.io.File; import java.util.List; -@SuppressWarnings("UseOfSystemOutOrSystemErr") abstract class StdLibTestBase extends SingleFileTranslationTest { protected StdLibTestBase() {