src/main/java/com/aliyun/openservices/log/common/Resource.java [189:209]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void checkForUpdate() throws IllegalArgumentException {
        if (name == null || name.isEmpty()) {
            throw new IllegalArgumentException("name is null/empty");
        }

        if (schema != null) {
            try {
                JSONObject.parseObject(schema);
            } catch (JSONException e) {
                throw new IllegalArgumentException("resource schema not valid json");
            }
        }

        if (acl != null) {
            try {
                JSONObject.parseObject(acl);
            } catch (JSONException e) {
                throw new IllegalArgumentException("resource acl not valid json");
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/com/aliyun/openservices/log/common/Topostore.java [185:205]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void checkForCreate() throws IllegalArgumentException {
        if (name == null || name.isEmpty()) {
            throw new IllegalArgumentException("topostore name is null/empty");
        }

        if (schema != null) {
            try {
                JSONObject.parseObject(schema);
            } catch (JSONException e) {
                throw new IllegalArgumentException("topostore schema not valid json");
            }
        }

        if (acl != null) {
            try {
                JSONObject.parseObject(acl);
            } catch (JSONException e) {
                throw new IllegalArgumentException("topostore acl not valid json");
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



