Language: Java
Label: safe
CWE: NVD-CWE-noinfo \u2014 

Code:
    PrefixPathMapping(String prefix, boolean stripPrefix) {
        checkArgument(Flags.allowSemicolonInPathComponent() || prefix.indexOf(';') < 0,
                      "prefix: %s (expected not to have a ';')", prefix);
        prefix = ensureAbsolutePath(prefix, "prefix");
        if (!prefix.endsWith("/")) {
            prefix += '/';
        }

        this.prefix = prefix;
        this.stripPrefix = stripPrefix;
        final String triePath = prefix + '*';
        paths = ImmutableList.of(prefix, triePath);
        pathPattern = triePath;
        strVal = PREFIX + prefix + " (stripPrefix: " + stripPrefix + ')';
    }