Commit 5c9689bc by Yizhi Liu Committed by Tianqi Chen

upgrade java style-check due to CVE-2019-9658 (#2817)

parent baf7a729
...@@ -57,9 +57,6 @@ ...@@ -57,9 +57,6 @@
<property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/> <property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
</module> </module>
<module name="NeedBraces"/> <module name="NeedBraces"/>
<module name="LeftCurly">
<property name="maxLineLength" value="100"/>
</module>
<module name="RightCurly"/> <module name="RightCurly"/>
<module name="RightCurly"> <module name="RightCurly">
<property name="option" value="alone"/> <property name="option" value="alone"/>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<dependency> <dependency>
<groupId>com.puppycrawl.tools</groupId> <groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId> <artifactId>checkstyle</artifactId>
<version>6.12</version> <version>[8.18,)</version>
</dependency> </dependency>
</dependencies> </dependencies>
<executions> <executions>
......
...@@ -161,7 +161,7 @@ final class Base { ...@@ -161,7 +161,7 @@ final class Base {
// helper function definitions // helper function definitions
/** /**
* Check the return value of C API call * Check the return value of C API call.
* <p> * <p>
* This function will raise exception when error occurs. * This function will raise exception when error occurs.
* Wrap every API call with this function * Wrap every API call with this function
......
...@@ -75,7 +75,7 @@ public class Function extends TVMValue { ...@@ -75,7 +75,7 @@ public class Function extends TVMValue {
} }
/** /**
* Initialize the function with handle * Initialize the function with handle.
* @param handle the handle to the underlying function. * @param handle the handle to the underlying function.
* @param isResident Whether this is a resident function in jvm * @param isResident Whether this is a resident function in jvm
*/ */
......
...@@ -122,6 +122,7 @@ public class Module extends TVMValue { ...@@ -122,6 +122,7 @@ public class Module extends TVMValue {
} }
/** /**
* Get type key of the module.
* @return type key of the module. * @return type key of the module.
*/ */
public String typeKey() { public String typeKey() {
......
...@@ -45,7 +45,7 @@ public class NDArrayBase extends TVMValue { ...@@ -45,7 +45,7 @@ public class NDArrayBase extends TVMValue {
} }
/** /**
* Copy array to target * Copy array to target.
* @param target The target array to be copied, must have same shape as this array. * @param target The target array to be copied, must have same shape as this array.
* @return target * @return target
*/ */
......
...@@ -72,7 +72,7 @@ public class GraphModule { ...@@ -72,7 +72,7 @@ public class GraphModule {
} }
/** /**
* Set inputs to the module * Set inputs to the module.
* @param key The input key. * @param key The input key.
* @param value The input value. * @param value The input value.
* @return self. * @return self.
......
...@@ -31,7 +31,7 @@ public class NativeServerLoop implements Runnable { ...@@ -31,7 +31,7 @@ public class NativeServerLoop implements Runnable {
private final int sockFd; private final int sockFd;
/** /**
* Constructor for NativeServerLoop * Constructor for NativeServerLoop.
* @param nativeSockFd native socket file descriptor. * @param nativeSockFd native socket file descriptor.
*/ */
public NativeServerLoop(final int nativeSockFd) { public NativeServerLoop(final int nativeSockFd) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment