SIC:内部类可以成为静态类 (FB.SIC_INNER_SHOULD_BE_STATIC)

原:

    private final int HTTP_GET = 1;
    private final int HTTP_POST = 2;
    private final int HTTP_PUT = 3;
    private final int HTTP_DELETE = 4;

    protected class HttpExchangeResult {
        private String queryString;
        private Map headerMap = new HashMap<>();
        private Map bodyMap = new HashMap<>();

        public HttpExchangeResult() {


        return envelopMap;
    }


    private HttpExchangeResult exchangeByRule(Map headerMap, Map bodyMap, HttpSelfDefRuleEntity ruleEntity, Exchange exchange) throws Exception {
        HttpExchangeResult result = new HttpExchangeResult();

        // get cfg query map
//        Map cfgQueryMap = new HashMap();
//        cfgQueryMap.put("name", new HttpSelfDefParameter("name", "header", true, true));
//        cfgQueryMap.put("age", new HttpSelfDefParameter("age", "body", true, false));
//        cfgQueryMap.put("test", new HttpSelfDefParameter("1", null, false, true));

改:

    private final int HTTP_GET = 1;
    private final int HTTP_POST = 2;
    private final int HTTP_PUT = 3;
    private final int HTTP_DELETE = 4;

    protected static final class HttpExchangeResult {
        private String queryString;
        private Map headerMap = new HashMap<>();
        private Map bodyMap = new HashMap<>();

        public HttpExchangeResult() {


        return envelopMap;
    }


    private HttpExchangeResult exchangeByRule(Map headerMap, Map bodyMap, HttpSelfDefRuleEntity ruleEntity, Exchange exchange) throws Exception {
        HttpExchangeResult result = new EnvRequestProcessor.HttpExchangeResult();

        // get cfg query map
//        Map cfgQueryMap = new HashMap();
//        cfgQueryMap.put("name", new HttpSelfDefParameter("name", "header", true, true));
//        cfgQueryMap.put("age", new HttpSelfDefParameter("age", "body", true, false));
//        cfgQueryMap.put("test", new HttpSelfDefParameter("1", null, false, true));

猜你喜欢

转载自blog.csdn.net/ydk888888/article/details/80283759