mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
quick fix for MagicConstantInspection which suggests to replace 1 with Font.BOLD
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Replace with 'D.FontType.BOLD | D.FontType.ITALIC | D.FontType.WEIRD'" "true"
|
||||
import org.intellij.lang.annotations.MagicConstant;
|
||||
|
||||
class D {
|
||||
static class FontType {
|
||||
public static final int PLAIN = 0;
|
||||
public static final int BOLD = 1;
|
||||
public static final int ITALIC = 2;
|
||||
public static final int WEIRD = 4;
|
||||
}
|
||||
void font(@MagicConstant(flagsFromClass = FontType.class) int x) {
|
||||
font(<caret>7);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user