cleanup (final)

GitOrigin-RevId: 446f1aef2550b74b13c788fceaa36967a6f0b9c9
This commit is contained in:
Vladimir Krivosheev
2020-07-15 17:11:12 +02:00
committed by intellij-monorepo-bot
parent 52ec0de0eb
commit 3d280e4fb2
258 changed files with 620 additions and 2005 deletions

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2009 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.
*/
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.rt.compiler;
import java.text.MessageFormat;
@@ -23,7 +9,7 @@ import java.util.ResourceBundle;
* MUST BE COMPILED WITH JDK 1.1 IN ORDER TO SUPPORT JAVAC LAUNCHING FOR ALL JDKs
* @author Eugene Zhuravlev
*/
public class JavacResourcesReader {
public final class JavacResourcesReader {
public static final String MSG_PATTERNS_START = "__patterns_start";
public static final String MSG_PATTERNS_END = "__patterns_end";
public static final String MSG_PARSING_STARTED = "MSG_PARSING_STARTED";
@@ -91,7 +77,7 @@ public class JavacResourcesReader {
}
}
*/
public static boolean dumpPatterns() {
final ResourceBundle messagesBundle = getMessagesBundle();
if (messagesBundle == null) {

View File

@@ -9,7 +9,7 @@ import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
public class BatchEvaluatorServer {
public final class BatchEvaluatorServer {
/**
* Serialize result in one String to avoid multiple getValue commands from the resulting array
*/

View File

@@ -4,7 +4,7 @@ package com.intellij.rt.debugger;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class DefaultMethodInvoker {
public final class DefaultMethodInvoker {
// only methods without arguments for now
public static Object invoke(Object obj, String name)

View File

@@ -8,7 +8,7 @@ import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
public class ImageSerializer {
public final class ImageSerializer {
public static String imageToBytes(Image image) throws IOException {
//noinspection UndesirableClassUsage
BufferedImage bi = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_ARGB);

View File

@@ -18,7 +18,7 @@ import java.util.jar.Manifest;
* @author anna
* @noinspection SSBasedInspection, UseOfSystemOutOrSystemErr
*/
public class CommandLineWrapper {
public final class CommandLineWrapper {
private static final class AppData {
private final List<String> properties;
private final Class<?> mainClass;

View File

@@ -1,6 +1,6 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.rt.execution;
public class TestListenerProtocol {
public final class TestListenerProtocol {
public static final String CLASS_CONFIGURATION = "Class Configuration";
}

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2017 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.
*/
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.rt.execution.application;
import java.io.BufferedReader;
@@ -29,7 +15,7 @@ import java.util.Locale;
* @author ven
* @noinspection UseOfSystemOutOrSystemErr
*/
public class AppMainV2 {
public final class AppMainV2 {
public static final String LAUNCHER_PORT_NUMBER = "idea.launcher.port";
public static final String LAUNCHER_BIN_PATH = "idea.launcher.bin.path";
@@ -145,7 +131,7 @@ public class AppMainV2 {
}
}
public static class Agent {
public static final class Agent {
public static void premain(String args, Instrumentation i) {
AppMainV2.premain(args);
}

View File

@@ -1,25 +1,11 @@
/*
* Copyright 2000-2015 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.
*/
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.rt.execution.junit;
import java.util.Iterator;
import java.util.Map;
public class MapSerializerUtil {
public final class MapSerializerUtil {
public static final String TEST_FAILED = "testFailed";
public static final String TEST_IGNORED = "testIgnored";