mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CompilerMessage#getSourcePath return null in case of multiple sources (fast fix for IDEA-CR-13211)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user