Giter VIP home page Giter VIP logo

hs-findbugs's Introduction

hs-findbugs's People

Contributors

mycsoft avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hs-findbugs's Issues

检查异常嵌套时出错.

try (InputStream in = CommonsConstants.class.getResourceAsStream("/constants.properties")) {
            props.load(in);
} catch (IOException e) {
            logger.error("初始化环境变量异常", e);
            throw new RuntimeException("Hs System init failed!", e);
}

这里仍然会示为错误.

在Hudson中不显示错误说明.

在Hudson 的findbugs插件中都显示为下面这个样子:

AttachController.java:84, HS_EXCEPTION_PRINT, Priority: Normal
No description available.
No description available.

While中异常处理检查错误

    public static String emojiConvert(String str) {
        String patternString = "([\\x{10000}-\\x{10ffff}\ud800-\udfff])";

        Pattern pattern = Pattern.compile(patternString);
        Matcher matcher = pattern.matcher(str);
        StringBuffer sb = new StringBuffer();
        while (matcher.find()) {
            try {
                matcher.appendReplacement(
                        sb,
                        "[["
                        + URLEncoder.encode(matcher.group(1),
                                "UTF-8") + "]]");
            } catch (UnsupportedEncodingException e) {
                logger.error("emojiConvert error", e);
                throw new RuntimeException("emojiConvert error", e);
            }
        }
        matcher.appendTail(sb);
        logger.debug("emojiConvert " + str + " to " + sb.toString()
                + ", len:" + sb.length());
        return sb.toString();
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.