提交 cb06f4f9 编写于 作者: K kr11

fix jt conversation

上级 3360cb00
......@@ -28,15 +28,16 @@ public class ColumnSchema implements Serializable {
private static final long serialVersionUID = -8257474930341487207L;
public void setName(String name) {
this.name = name;
}
private String name;
public TSDataType dataType;
public TSEncoding encoding;
private Map<String, String> args;
public void setName(String name) {
this.name = name;
}
/**
* constructor of ColumnSchema.
*
......
......@@ -26,7 +26,11 @@ import org.antlr.runtime.tree.CommonErrorNode;
public class AstErrorNode extends AstNode {
private static final long serialVersionUID = 1L;
transient CommonErrorNode delegate;
/**
* delegate needn't be serialized.
*/
private transient CommonErrorNode delegate;
public AstErrorNode(TokenStream input, Token start, Token stop, RecognitionException e) {
delegate = new CommonErrorNode(input, start, stop, e);
......
......@@ -42,7 +42,9 @@ public class AuthUtils {
private static final String ENCRYPT_ALGORITHM = "MD5";
private static final String STRING_ENCODING = "utf-8";
private AuthUtils(){}
private AuthUtils() {
}
/**
* validate password length.
......@@ -193,7 +195,9 @@ public class AuthUtils {
}
for (PathPrivilege pathPrivilege : privilegeList) {
if (path != null) {
if (pathPrivilege.getPath() != null && AuthUtils.pathBelongsTo(path, pathPrivilege.getPath()) && pathPrivilege.getPrivileges().contains(privilegeId)) {
if (pathPrivilege.getPath() != null &&
AuthUtils.pathBelongsTo(path, pathPrivilege.getPath()) &&
pathPrivilege.getPrivileges().contains(privilegeId)) {
return true;
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册