mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fix sonar rule check violations
This commit is contained in:
@@ -36,7 +36,7 @@ public class MockStatement extends StatementBase implements MockStatementBase, S
|
||||
}
|
||||
}
|
||||
|
||||
protected void checkOpen() throws SQLException, MockConnectionClosedException {
|
||||
protected void checkOpen() throws SQLException {
|
||||
if (closed) {
|
||||
throw new SQLException();
|
||||
}
|
||||
|
||||
@@ -808,7 +808,7 @@ public class Lexer {
|
||||
token = Token.LITERAL_HEX;
|
||||
}
|
||||
|
||||
public String hexString() throws NumberFormatException {
|
||||
public String hexString() {
|
||||
return new String(buf, np, sp);
|
||||
}
|
||||
|
||||
@@ -876,7 +876,7 @@ public class Lexer {
|
||||
}
|
||||
|
||||
// QS_TODO negative number is invisible for lexer
|
||||
public Number integerValue() throws NumberFormatException {
|
||||
public Number integerValue() {
|
||||
long result = 0;
|
||||
boolean negative = false;
|
||||
int i = np, max = np + sp;
|
||||
|
||||
@@ -52,7 +52,7 @@ public class BeanTypeAutoProxyCreator extends AbstractAutoProxyCreator implement
|
||||
this.targetBeanType = targetClass;
|
||||
}
|
||||
|
||||
public void setApplicationContext(ApplicationContext context) throws BeansException {
|
||||
public void setApplicationContext(ApplicationContext context) {
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ public abstract class StatementBase implements Statement {
|
||||
this.connection = connection;
|
||||
}
|
||||
|
||||
protected void checkOpen() throws SQLException, MockConnectionClosedException {
|
||||
protected void checkOpen() throws SQLException {
|
||||
if (closed) {
|
||||
throw new SQLException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user