mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
correct ephemeral state copy (IDEA-113143 Calling method with contract shouldn't result in nullability suspicion)
This commit is contained in:
+4
@@ -65,6 +65,7 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
|
||||
public DfaMemoryStateImpl createCopy() {
|
||||
DfaMemoryStateImpl newState = createNew();
|
||||
|
||||
newState.myEphemeral = myEphemeral;
|
||||
newState.myStack.addAll(myStack);
|
||||
newState.myDistinctClasses.addAll(myDistinctClasses.toArray());
|
||||
newState.myUnknownVariables.addAll(myUnknownVariables);
|
||||
@@ -148,6 +149,9 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
|
||||
public String toString() {
|
||||
StringBuilder result = new StringBuilder();
|
||||
result.append('<');
|
||||
if (myEphemeral) {
|
||||
result.append("ephemeral, ");
|
||||
}
|
||||
|
||||
for (SortedIntSet set : getNonTrivialEqClasses()) {
|
||||
appendClass(result, set);
|
||||
|
||||
Reference in New Issue
Block a user