mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
(no message)
This commit is contained in:
@@ -5,8 +5,8 @@ public class DfaValue {
|
||||
|
||||
protected DfaValue() {
|
||||
final DfaValueFactory factory = DfaValueFactory.getInstance();
|
||||
myID = factory.createID(this);
|
||||
factory.registerID(this);
|
||||
myID = factory.createID();
|
||||
factory.registerValue(this);
|
||||
}
|
||||
|
||||
public int getID() {
|
||||
|
||||
@@ -32,13 +32,13 @@ public class DfaValueFactory {
|
||||
return myInstance;
|
||||
}
|
||||
|
||||
int createID(DfaValue value) {
|
||||
int createID() {
|
||||
myLastID++;
|
||||
LOG.assertTrue(myLastID >= 0, "Overflow");
|
||||
return myLastID;
|
||||
}
|
||||
|
||||
void registerID(DfaValue value) {
|
||||
void registerValue(DfaValue value) {
|
||||
myValues.put(value.getID(), value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user