diff --git a/java/java-impl/src/com/intellij/codeInsight/ExternalAnnotationsManagerImpl.java b/java/java-impl/src/com/intellij/codeInsight/ExternalAnnotationsManagerImpl.java index 2e3e8f1e3834..657316e00e34 100644 --- a/java/java-impl/src/com/intellij/codeInsight/ExternalAnnotationsManagerImpl.java +++ b/java/java-impl/src/com/intellij/codeInsight/ExternalAnnotationsManagerImpl.java @@ -295,7 +295,7 @@ public class ExternalAnnotationsManagerImpl extends BaseExternalAnnotationsManag return; } - final List annotationFiles = xmlFiles == null ? new ArrayList() : new ArrayList(xmlFiles); + final List annotationFies = xmlFiles == null ? new ArrayList() : new ArrayList(xmlFiles); new WriteCommandAction(project) { @Override @@ -311,7 +311,7 @@ public class ExternalAnnotationsManagerImpl extends BaseExternalAnnotationsManag else { annotationFiles.add(newXml); myExternalAnnotations.put(getFQN(packageName, fromFile), annotationFiles); - annotateExternally(listOwner, annotationFQName, existingXml, fromFile, value); + annotateExternally(listOwner, annotationFQName, newXml, fromFile, value); } }