mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
LogConsolePreferences — remove unused patterns
This commit is contained in:
@@ -1,19 +1,6 @@
|
||||
/*
|
||||
* Copyright 2000-2016 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-2018 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.diagnostic.logging;
|
||||
|
||||
import com.intellij.execution.process.ProcessOutputTypes;
|
||||
@@ -61,22 +48,8 @@ public class LogConsolePreferences extends LogFilterRegistrar {
|
||||
@NonNls public static final String DEBUG = "DEBUG";
|
||||
@NonNls public static final String CUSTOM = "CUSTOM";
|
||||
|
||||
@Deprecated
|
||||
public final static Pattern ERROR_PATTERN = Pattern.compile(".*(" + ERROR + "|FATAL).*");
|
||||
@Deprecated
|
||||
public final static Pattern WARNING_PATTERN = Pattern.compile(".*" + WARNING + ".*");
|
||||
@Deprecated
|
||||
public final static Pattern WARN_PATTERN = Pattern.compile(".*" + WARN + ".*");
|
||||
@Deprecated
|
||||
public final static Pattern INFO_PATTERN = Pattern.compile(".*" + INFO + ".*");
|
||||
@Deprecated
|
||||
public static final Pattern DEBUG_PATTERN = Pattern.compile(".*" + DEBUG + ".*");
|
||||
|
||||
@NonNls public final static Pattern EXCEPTION_PATTERN = Pattern.compile(".*at .*");
|
||||
|
||||
/**
|
||||
* Set of patterns to assign severity to given message. Replaces deprecated patterns {@link LogConsolePreferences#ERROR_PATTERN},
|
||||
* {@link LogConsolePreferences#DEBUG_PATTERN}, etc with the versions which don't contain ".*"
|
||||
* Set of patterns to assign severity to given message.
|
||||
*/
|
||||
private enum LevelPattern {
|
||||
|
||||
@@ -206,7 +179,7 @@ public class LogConsolePreferences extends LogFilterRegistrar {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadState(final Element object) {
|
||||
public void loadState(@NotNull final Element object) {
|
||||
try {
|
||||
final List children = object.getChildren(FILTER);
|
||||
for (Object child : children) {
|
||||
|
||||
Reference in New Issue
Block a user