Java 类java.lang.StringIndexOutOfBoundsException 实例源码

项目:opennmszh    文件:HostResourceSwRunMonitor.java   
private static String stripExtraQuotes(String string) {
    String stripped;
    try {
        stripped = StringUtils.stripFrontBack(string, "\"", "\"");
    } catch (StringIndexOutOfBoundsException e) {
        // Sometimes these are zero-length, see NMS-5852
        stripped = string;
    }

    return stripped;
}