revert compiler-message to receive only one file
[idea/community.git] / jps / jps-builders / src / org / jetbrains / jps / incremental / instrumentation / NotNullInstrumentingBuilder.java
index 5ae766ce0e59300ec85287662c6fd14310cc6874..a4e7873b373b0bf78caf9ee10b522272e91d30da 100644 (file)
@@ -93,9 +93,9 @@ public class NotNullInstrumentingBuilder extends BaseInstrumentingBuilder{
         }
       }) + ": " + e.getMessage();
       context.processMessage(new CompilerMessage(getPresentableName(),
+                                                 BuildMessage.Kind.ERROR,
                                                  msg,
-                                                 compiledClass.getSourceFilesPaths(),
-                                                 BuildMessage.Kind.ERROR));
+                                                 ContainerUtil.getFirstItem(compiledClass.getSourceFilesPaths())));
     }
     return null;
   }