duplication removed
authornik <Nikolay.Chashnikov@jetbrains.com>
Tue, 14 Dec 2010 11:49:01 +0000 (14:49 +0300)
committernik <Nikolay.Chashnikov@jetbrains.com>
Tue, 14 Dec 2010 11:49:01 +0000 (14:49 +0300)
java/compiler/impl/src/com/intellij/packaging/impl/artifacts/ArtifactPointerManagerImpl.java

index 74fbb5993a027bc7421fc0d70ca76b9b32d055e5..cc9d5db4057d003e0e2fe2805d612d2e2e6fab60 100644 (file)
@@ -56,18 +56,7 @@ public class ArtifactPointerManagerImpl extends ArtifactPointerManager {
 
       @Override
       public void artifactChanged(@NotNull Artifact artifact, @NotNull String oldName) {
-        final ArtifactPointerImpl pointer = myPointers.get(artifact);
-        if (pointer != null) {
-          pointer.setName(artifact.getName());
-        }
-        
-        final ArtifactPointerImpl unresolved = myUnresolvedPointers.remove(artifact.getName());
-        if (unresolved != null) {
-          unresolved.setArtifact(artifact);
-          if (pointer == null) {
-            myPointers.put(artifact, unresolved);
-          }
-        }
+        artifactAdded(artifact);
       }
     });
   }