GitHub user ConeyLiu opened a pull request:

    https://github.com/apache/spark/pull/17890

    [MINOR][BUILD] Fix lint-java breaks.

    ## What changes were proposed in this pull request?
    
    This PR proposes to fix the lint-breaks as below:
    ```
    [ERROR] src/main/java/org/apache/spark/unsafe/Platform.java:[51] (regexp) 
RegexpSingleline: No trailing whitespace allowed.
    [ERROR] src/main/scala/org/apache/spark/sql/streaming/Trigger.java:[45,25] 
(naming) MethodName: Method name 'ProcessingTime' must match pattern 
'^[a-z][a-z0-9][a-zA-Z0-9_]*$'.
    [ERROR] src/main/scala/org/apache/spark/sql/streaming/Trigger.java:[62,25] 
(naming) MethodName: Method name 'ProcessingTime' must match pattern 
'^[a-z][a-z0-9][a-zA-Z0-9_]*$'.
    [ERROR] src/main/scala/org/apache/spark/sql/streaming/Trigger.java:[78,25] 
(naming) MethodName: Method name 'ProcessingTime' must match pattern 
'^[a-z][a-z0-9][a-zA-Z0-9_]*$'.
    [ERROR] src/main/scala/org/apache/spark/sql/streaming/Trigger.java:[92,25] 
(naming) MethodName: Method name 'ProcessingTime' must match pattern 
'^[a-z][a-z0-9][a-zA-Z0-9_]*$'.
    [ERROR] src/main/scala/org/apache/spark/sql/streaming/Trigger.java:[102,25] 
(naming) MethodName: Method name 'Once' must match pattern 
'^[a-z][a-z0-9][a-zA-Z0-9_]*$'.
    [ERROR] 
src/test/java/org/apache/spark/streaming/kinesis/JavaKinesisInputDStreamBuilderSuite.java:[28,8]
 (imports) UnusedImports: Unused import - 
org.apache.spark.streaming.api.java.JavaDStream.
    ```
    
    after:
    ```
    dev/lint-java
    Checkstyle checks passed.
    ```
    [Test Result](https://travis-ci.org/ConeyLiu/spark/jobs/229666169)
    
    ## How was this patch tested?
    
    Travis CI


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ConeyLiu/spark codestyle

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/17890.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #17890
    
----
commit 3b015c505b0a277e8d6cdb8c6fd4801ab199d9d2
Author: Xianyang Liu <[email protected]>
Date:   2017-05-06T12:36:11Z

    Fix lint-check failures

commit ff4fc4266df62ddfa0cd70c24b55fd7daa79328f
Author: Xianyang Liu <[email protected]>
Date:   2017-05-06T13:23:32Z

    correct the method name

commit 16a8ac788e58ce36ccc29a3044246b2171527c55
Author: Xianyang Liu <[email protected]>
Date:   2017-05-07T13:21:29Z

    correct the method name

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to