You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by GitBox <gi...@apache.org> on 2021/08/01 04:37:12 UTC

[GitHub] [orc] dongjoon-hyun opened a new pull request #793: ORC-891: Use assert methods without package name

dongjoon-hyun opened a new pull request #793:
URL: https://github.com/apache/orc/pull/793


   ### What changes were proposed in this pull request?
   
   This PR aims to use `assertXXX` methods directly without their package name, `Assert`.
   
   ```java
   -import org.junit.Assert;
    import org.junit.Before;
    import org.junit.Test;
    
   @@ -194,12 +193,12 @@ public class TestFileDump {
          if (actualLine != null) {
            actualLine = actualLine.trim();
          }
   -      Assert.assertEquals(expectedLine, actualLine);
   +      assertEquals(expectedLine, actualLine);
   ```
   
   ### Why are the changes needed?
   
   There are two benefits after this PR.
   - It's easy to remove the JUnit5 `vintage` engine and migrate to the real JUnit5.
   - It reduces the length of lines. We are gradually reducing the maximum limit of length by the checkstyle rule to 80 which is [the ORC coding guideline](https://orc.apache.org/develop/coding/).
   
   ### How was this patch tested?
   
   Pass the CIs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [orc] dongjoon-hyun edited a comment on pull request #793: ORC-891: Use assert methods without package name

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun edited a comment on pull request #793:
URL: https://github.com/apache/orc/pull/793#issuecomment-890449388


   Hi, @williamhyun . Could you review this PR, please? If there is the best person who know this well, I believe it's you. :)
   
   - This is a continuation of your JUnit5 contribution. After this, we can migrate more easily.
   - Also, this is a continuation of your Checkstyle contribution. After this, this PR reduces the length of lines.
   
   We may add a checkstyle rule to prevent `import org.junit.Assert;` from the code. It will be helpful if our migration takes longer than we expect.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [orc] dongjoon-hyun commented on pull request #793: ORC-891: Use assert methods without package name

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #793:
URL: https://github.com/apache/orc/pull/793#issuecomment-890449388


   Hi, @williamhyun . Could you review this PR? If there is the best person who know this, I believe it's you. :)
   
   - This is a continuation of your JUnit5 contribution. After this, we can migrate more easily.
   - Also, this is a continuation of your Checkstyle contribution. After this, this PR reduces the length of lines.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [orc] dongjoon-hyun commented on pull request #793: ORC-891: Use assert methods without package name

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #793:
URL: https://github.com/apache/orc/pull/793#issuecomment-891625791


   I backported this to branch-1.7, too.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [orc] dongjoon-hyun edited a comment on pull request #793: ORC-891: Use assert methods without package name

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun edited a comment on pull request #793:
URL: https://github.com/apache/orc/pull/793#issuecomment-890449388






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [orc] dongjoon-hyun commented on pull request #793: ORC-891: Use assert methods without package name

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #793:
URL: https://github.com/apache/orc/pull/793#issuecomment-890457274


   Although Travis CI is still running, all GitHub Action passed with Java8/11/16. I'll merge this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [orc] dongjoon-hyun edited a comment on pull request #793: ORC-891: Use assert methods without package name

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun edited a comment on pull request #793:
URL: https://github.com/apache/orc/pull/793#issuecomment-890449388






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [orc] dongjoon-hyun merged pull request #793: ORC-891: Use assert methods without package name

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun merged pull request #793:
URL: https://github.com/apache/orc/pull/793


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [orc] dongjoon-hyun commented on pull request #793: ORC-891: Use assert methods without package name

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #793:
URL: https://github.com/apache/orc/pull/793#issuecomment-890455304


   Thank you so much for your swift review and approval, @williamhyun !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org