From fa4eb332fde7b6a5a0766c7146a4834edfb80123 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Fri, 25 May 2018 19:32:19 +0300 Subject: [PATCH] no need for updateData call in constructor, we only need to update modification timestamp --- .../openapi/src/com/intellij/debugger/SourcePosition.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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