We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/alibaba/druid/blob/master/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java 第869行 ` public void setValidationQueryTimeout(int validationQueryTimeout) { if (validationQueryTimeout < 0 && JdbcConstants.SQL_SERVER.equals(dbTypeName)) { LOG.error("validationQueryTimeout should be >= 0"); } this.validationQueryTimeout = validationQueryTimeout; }
` c此时JdbcConstants.SQL_SERVER是个枚举,dbTypeName是字符串类型。 导入druid 1.2.1的源代码,sonarlint扫描提示: Silly equality checks should not be made (java:S2159)
The text was updated successfully, but these errors were encountered:
10f84b4
wenshao
No branches or pull requests
https://github.com/alibaba/druid/blob/master/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java
第869行
` public void setValidationQueryTimeout(int validationQueryTimeout) {
if (validationQueryTimeout < 0 && JdbcConstants.SQL_SERVER.equals(dbTypeName)) {
LOG.error("validationQueryTimeout should be >= 0");
}
this.validationQueryTimeout = validationQueryTimeout;
}
`
c此时JdbcConstants.SQL_SERVER是个枚举,dbTypeName是字符串类型。
导入druid 1.2.1的源代码,sonarlint扫描提示:
Silly equality checks should not be made (java:S2159)
The text was updated successfully, but these errors were encountered: