IDEA-208497 Magic constant inspection shows warning for xor

This commit is contained in:
Tagir Valeev
2019-03-11 11:37:21 +07:00
parent d3e23bbb38
commit c48baf0d0f
2 changed files with 3 additions and 1 deletions
@@ -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);
}
}