1
0

[checkstyle] Add ConstantName java checkstyle rule (#1066)

* add SimplifyBooleanExpression java checkstyle rule
* collapse empty tags in scalastyle file
This commit is contained in:
lamber-ken
2019-12-04 18:59:15 +08:00
committed by leesf
parent b2d9638bea
commit b3e0ebbc4a
38 changed files with 192 additions and 186 deletions

View File

@@ -33,13 +33,13 @@ import java.sql.Statement;
*/
public class HiveUtil {
private static final String driverName = "org.apache.hive.jdbc.HiveDriver";
private static final String DRIVER_NAME = "org.apache.hive.jdbc.HiveDriver";
static {
try {
Class.forName(driverName);
Class.forName(DRIVER_NAME);
} catch (ClassNotFoundException e) {
throw new IllegalStateException("Could not find " + driverName + " in classpath. ", e);
throw new IllegalStateException("Could not find " + DRIVER_NAME + " in classpath. ", e);
}
}