diff --git a/source/com/intellij/codeInspection/dataFlow/value/DfaValue.java b/source/com/intellij/codeInspection/dataFlow/value/DfaValue.java index bda0c45080e9..56f19d711ae8 100644 --- a/source/com/intellij/codeInspection/dataFlow/value/DfaValue.java +++ b/source/com/intellij/codeInspection/dataFlow/value/DfaValue.java @@ -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() { diff --git a/source/com/intellij/codeInspection/dataFlow/value/DfaValueFactory.java b/source/com/intellij/codeInspection/dataFlow/value/DfaValueFactory.java index 3d6938aa2ca8..0d57687536b1 100644 --- a/source/com/intellij/codeInspection/dataFlow/value/DfaValueFactory.java +++ b/source/com/intellij/codeInspection/dataFlow/value/DfaValueFactory.java @@ -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); }