diff --git a/java/debugger/openapi/src/com/intellij/debugger/SourcePosition.java b/java/debugger/openapi/src/com/intellij/debugger/SourcePosition.java index 2c90048a634c..f25505a9d45f 100644 --- a/java/debugger/openapi/src/com/intellij/debugger/SourcePosition.java +++ b/java/debugger/openapi/src/com/intellij/debugger/SourcePosition.java @@ -42,7 +42,7 @@ public abstract class SourcePosition implements Navigatable{ private abstract static class SourcePositionCache extends SourcePosition { @NotNull private final PsiFile myFile; @Nullable private final SmartPsiElementPointer myFilePointer; - private long myModificationStamp = -1L; + private long myModificationStamp; private WeakReference myPsiElementRef; private Integer myLine; @@ -52,7 +52,7 @@ public abstract class SourcePosition implements Navigatable{ myFile = file; myFilePointer = ReadAction.compute( () -> file.isValid() ? SmartPointerManager.getInstance(file.getProject()).createSmartPsiElementPointer(file) : null); - updateData(); + myModificationStamp = file.getModificationStamp(); } @Override