All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nike.riposte.util.MatcherUtil Maven / Gradle / Ivy

There is a newer version: 0.20.0
Show newest version
package com.nike.riposte.util;

@SuppressWarnings("WeakerAccess")
public class MatcherUtil {

    // Intentionally protected - use the static methods
    protected MatcherUtil() { /* do nothing */ }

    public static String stripEndSlash(String path) {
        if (path.endsWith("/")) {
            return path.substring(0, path.length() - 1);
        } else {
            return path;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy