[jvm-packages] update checkstyle (#7335)

* [jvm-packages] update scalastyle

1. bump scalastyle-maven-plugin and maven-checkstyle-plugin to latest
2. remove unused imports

* fix code style check
This commit is contained in:
Bobby Wang
2021-10-18 18:42:01 +08:00
committed by GitHub
parent fbb0dc4275
commit 4fd149b3a2
12 changed files with 34 additions and 49 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright (c) 2014 by Contributors
Copyright (c) 2014,2021 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -436,7 +436,7 @@ public class Booster implements Serializable, KryoSerializable {
}
public String[] getModelDump(String[] featureNames, boolean withStats, String format)
throws XGBoostError {
throws XGBoostError {
int statsFlag = 0;
if (withStats) {
statsFlag = 1;

View File

@@ -1,7 +1,5 @@
package ml.dmlc.xgboost4j.java;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
@@ -80,7 +78,7 @@ public class RabitTracker implements IRabitTracker {
}
public RabitTracker(int numWorkers)
throws XGBoostError {
throws XGBoostError {
if (numWorkers < 1) {
throw new XGBoostError("numWorkers must be greater equal to one");
}