mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed sonar rule violations
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.alibaba.druid.sql.parser;
|
||||
|
||||
import com.alibaba.druid.sql.ast.SQLName;
|
||||
import com.alibaba.druid.sql.ast.statement.SQLTableConstaint;
|
||||
|
||||
public class SQLDDLParser extends SQLStatementParser {
|
||||
@@ -29,13 +28,13 @@ public class SQLDDLParser extends SQLStatementParser {
|
||||
}
|
||||
|
||||
protected SQLTableConstaint parseConstraint() {
|
||||
SQLName name = null;
|
||||
if (lexer.token() == Token.CONSTRAINT) {
|
||||
lexer.nextToken();
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.IDENTIFIER) {
|
||||
name = this.exprParser.name();
|
||||
this.exprParser.name();
|
||||
throw new ParserException("TODO");
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.PRIMARY) {
|
||||
@@ -45,10 +44,6 @@ public class SQLDDLParser extends SQLStatementParser {
|
||||
throw new ParserException("TODO");
|
||||
}
|
||||
|
||||
if (name != null) {
|
||||
|
||||
}
|
||||
|
||||
throw new ParserException("TODO");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user