You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "rishabhdaim (via GitHub)" <gi...@apache.org> on 2024/05/23 06:27:38 UTC

[PR] OAK-10711 : replaced preconditions.checkNotNull with Objects.requireN… [jackrabbit-oak]

rishabhdaim opened a new pull request, #1480:
URL: https://github.com/apache/jackrabbit-oak/pull/1480

   …otNull


-- 
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@jackrabbit.apache.org

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


Re: [PR] OAK-10711 : replaced preconditions.checkNotNull with Objects.requireNotNull [jackrabbit-oak]

Posted by "reschke (via GitHub)" <gi...@apache.org>.
reschke merged PR #1480:
URL: https://github.com/apache/jackrabbit-oak/pull/1480


-- 
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: oak-dev-unsubscribe@jackrabbit.apache.org

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


Re: [PR] OAK-10711 : replaced preconditions.checkNotNull with Objects.requireN… [jackrabbit-oak]

Posted by "reschke (via GitHub)" <gi...@apache.org>.
reschke commented on PR #1480:
URL: https://github.com/apache/jackrabbit-oak/pull/1480#issuecomment-2286432507

   I'd also like to take the opportunity to move the new imports to the "right" place, if only for consistency with all the other changes we already made.
   
   Let me have a look at this later this week.


-- 
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: oak-dev-unsubscribe@jackrabbit.apache.org

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


Re: [PR] OAK-10711 : replaced preconditions.checkNotNull with Objects.requireNotNull [jackrabbit-oak]

Posted by "reschke (via GitHub)" <gi...@apache.org>.
reschke commented on PR #1480:
URL: https://github.com/apache/jackrabbit-oak/pull/1480#issuecomment-2288816422

   Using...
   
   ~~~
   for i in $(grep -rl "Objects.requireNonNull" .) ; do num=$(grep "import static" $i | wc -l) ; [ $num -gt 1 ] && (grep "import static" $i > x1 ; sort x1 > x2 ; cmp -s x1 x2 ||  ( diff -u x1 x2 | (grep -q "+import static java.util.Objects.requireNonNull") && (echo ; echo $num; echo ; echo $i ; echo ; diff -u x1 x2 ))) ; done
   ~~~
   
   I identified files where the static imports now needed some reshuffling.
   
   Note that while doing this, I also found a case where the "new" import was already present, so we got a warning about duplicate imports.


-- 
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: oak-dev-unsubscribe@jackrabbit.apache.org

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


Re: [PR] OAK-10711 : replaced preconditions.checkNotNull with Objects.requireN… [jackrabbit-oak]

Posted by "stefan-egli (via GitHub)" <gi...@apache.org>.
stefan-egli commented on PR #1480:
URL: https://github.com/apache/jackrabbit-oak/pull/1480#issuecomment-2286367862

   no actual review just a comment : should we wait until after the release (with such a large change, even though seeming trivial) ?


-- 
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: oak-dev-unsubscribe@jackrabbit.apache.org

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