mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
Java: remove unneeded ':' from inspection problem report
GitOrigin-RevId: 9b0c070c8ca2a883d0d07f0064b67f22594cbced
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bd7f1f4270
commit
7db980cfcf
@@ -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-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.siyeh.ig.controlflow;
|
||||
|
||||
import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
@@ -41,7 +27,7 @@ public class EnumSwitchStatementWhichMissesCasesInspectionTest extends LightJava
|
||||
doTest("enum E { A, B, C, D }" +
|
||||
"class X {" +
|
||||
" void m(E e) {" +
|
||||
" /*'switch' statement on enum type 'E' misses cases: 'C', and 'D'*/switch/**/ (e) {" +
|
||||
" /*'switch' statement on enum type 'E' misses cases 'C' and 'D'*/switch/**/ (e) {" +
|
||||
" case A:" +
|
||||
" case B:" +
|
||||
" }" +
|
||||
@@ -53,7 +39,7 @@ public class EnumSwitchStatementWhichMissesCasesInspectionTest extends LightJava
|
||||
doTest("enum E { FIRST, SECOND, THIRD, FOURTH, FIFTH, SIXTH, SEVENTH, EIGHTH, NINTH }" +
|
||||
"class X {" +
|
||||
" void m(E e) {" +
|
||||
" /*'switch' statement on enum type 'E' misses cases: 'FIRST', 'SECOND', 'THIRD', 'FOURTH', 'FIFTH', ...*/switch/**/ (e) {" +
|
||||
" /*'switch' statement on enum type 'E' misses cases 'FIRST', 'SECOND', 'THIRD', 'FOURTH', 'FIFTH', ...*/switch/**/ (e) {" +
|
||||
" }" +
|
||||
" }" +
|
||||
"}");
|
||||
@@ -166,7 +152,7 @@ public class EnumSwitchStatementWhichMissesCasesInspectionTest extends LightJava
|
||||
} else {
|
||||
if (x == null || x == X.B) return;
|
||||
}
|
||||
/*'switch' statement on enum type 'X' misses cases: 'A', 'B', and 'C'*/switch/**/ (x) {
|
||||
/*'switch' statement on enum type 'X' misses cases 'A', 'B', and 'C'*/switch/**/ (x) {
|
||||
}
|
||||
}
|
||||
}""");
|
||||
|
||||
Reference in New Issue
Block a user