CompilerMessage#getSourcePath return null in case of multiple sources (fast fix for IDEA-CR-13211)

This commit is contained in:
Dmitry Batkovich
2016-08-23 14:39:07 +03:00
parent 465ac8bb80
commit 7ad07b409f
@@ -104,14 +104,7 @@ public class CompilerMessage extends BuildMessage {
@Nullable
public String getSourcePath() {
if (mySourcePaths.isEmpty()) {
return null;
}
else if (mySourcePaths.size() == 1) {
return ContainerUtil.getFirstItem(mySourcePaths);
} else {
return mySourcePaths.toString();
}
return mySourcePaths.size() == 1 ? ContainerUtil.getFirstItem(mySourcePaths) : null;
}
public long getLine() {