From f32bb651215353e70924fec6cf68828d7b7e5e0e Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Wed, 3 Dec 2014 20:52:06 +0100 Subject: [PATCH] do not create empty dependencies list for a CachedValue --- .../com/intellij/lang/ant/config/impl/AntBuildModelImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/ant/src/com/intellij/lang/ant/config/impl/AntBuildModelImpl.java b/plugins/ant/src/com/intellij/lang/ant/config/impl/AntBuildModelImpl.java index 673985667e3f..13ad8455ebd0 100644 --- a/plugins/ant/src/com/intellij/lang/ant/config/impl/AntBuildModelImpl.java +++ b/plugins/ant/src/com/intellij/lang/ant/config/impl/AntBuildModelImpl.java @@ -208,6 +208,9 @@ public class AntBuildModelImpl implements AntBuildModelBase { } }.fillTargets(list, model, project, sourceFile); } + if (dependencies.isEmpty()) { + dependencies.add(PsiModificationTracker.MODIFICATION_COUNT); + } return new Pair, Collection>(list, dependencies); }