mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
IDEA-208497 Magic constant inspection shows warning for xor
This commit is contained in:
@@ -266,5 +266,6 @@ public class X {
|
||||
void font(@MagicConstant(flags = {FontType.PLAIN, FontType.BOLD, FontType.ITALIC}) int x) {
|
||||
// 0 is not allowed despite the fact that it's flags parameter
|
||||
font(<warning descr="Should be one of: FontType.PLAIN, FontType.BOLD, FontType.ITALIC or their combination">0</warning>);
|
||||
font(x ^ FontType.BOLD);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user