mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
safe delete of enum constructor parameter (IDEA-22853)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
public enum UserFlags {
|
||||
Root("Has super administrative powers" ),
|
||||
Blacklisted("Probably a spammer" );
|
||||
|
||||
public final String description;
|
||||
public final int mask;
|
||||
|
||||
UserFlags(String description) {
|
||||
this.description = description;
|
||||
this.mask = 1 << ordinal();
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public enum UserFlags {
|
||||
Root("Has super administrative powers", 0),
|
||||
Blacklisted("Probably a spammer", 1);
|
||||
|
||||
public final String description;
|
||||
public final int mask;
|
||||
|
||||
UserFlags(String description, int <caret>position) {
|
||||
this.description = description;
|
||||
this.mask = 1 << ordinal();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user