mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
RegExp: rename
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// 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.
|
||||
// Copyright 2000-2019 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 org.intellij.lang.regexp.inspection;
|
||||
|
||||
import com.intellij.codeInspection.*;
|
||||
@@ -58,12 +58,12 @@ public class EmptyAlternationBranchInspection extends LocalInspectionTool {
|
||||
// empty branch at end allowed, if no empty branch at beginning
|
||||
continue;
|
||||
}
|
||||
myHolder.registerProblem(branch.getPrevSibling(), "Empty branch in alternation", new DuplicateAlternationBranchFix());
|
||||
myHolder.registerProblem(branch.getPrevSibling(), "Empty branch in alternation", new EmptyAlternationBranchFix());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static class DuplicateAlternationBranchFix implements LocalQuickFix {
|
||||
private static class EmptyAlternationBranchFix implements LocalQuickFix {
|
||||
|
||||
@Nls
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user