IDEA-CR-25370 add SystemIndependent to make clear that path must be system-independent

This commit is contained in:
Vladimir Krivosheev
2017-10-13 12:12:18 +02:00
parent 7f765fd156
commit b5918912db
@@ -18,6 +18,7 @@ import org.jdom.Element;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.SystemIndependent;
import org.jetbrains.jps.model.serialization.PathMacroUtil;
import java.util.Map;
@@ -33,7 +34,7 @@ public class BasePathMacroManager extends PathMacroManager {
myPathMacros = (PathMacrosImpl)pathMacros;
}
protected static void addFileHierarchyReplacements(@NotNull ExpandMacroToPathMap result, @NotNull String macroName, @Nullable String path) {
protected static void addFileHierarchyReplacements(@NotNull ExpandMacroToPathMap result, @NotNull String macroName, @SystemIndependent @Nullable String path) {
if (path != null) {
doAddFileHierarchyReplacements(result, StringUtil.trimEnd(path, "/"), '$' + macroName + '$');
}