You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "sabi0 (via GitHub)" <gi...@apache.org> on 2023/12/25 20:07:17 UTC
[PR] Replace "UTF-8" with StandardCharsets.UTF_8 [lucene]
sabi0 opened a new pull request, #12979:
URL: https://github.com/apache/lucene/pull/12979
(no comment)
--
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: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [PR] Replace "UTF-8" with StandardCharsets.UTF_8 [lucene]
Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on code in PR #12979:
URL: https://github.com/apache/lucene/pull/12979#discussion_r1437904047
##########
lucene/core/src/java/org/apache/lucene/index/CheckIndex.java:
##########
@@ -409,8 +408,8 @@ public static final class IndexSortStatus {
}
/** Status from testing soft deletes */
- public static final class SoftDeletsStatus {
- SoftDeletsStatus() {}
+ public static final class SoftDeletesStatus {
Review Comment:
I think a single PR for one type of "mechanical" changes would be nice. Those changes apply to one aspect of the source code but are not likely to touch the API or the runtime behavior. For example, this PR could only touch the UTF-8 refactoring - even though the patch affects a large number of files, it's simpler to skim through them and perhaps cherry pick it to another branch. When things are aggregated, it may be more difficult to untangle (or miss something important among trivial replacements).
Thank you for doing these cleanups, they're definitely needed and there's lots of cruft left over the years that could be improved (or modernized to new APIs).
--
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: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [PR] Replace "UTF-8" with StandardCharsets.UTF_8 [lucene]
Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on code in PR #12979:
URL: https://github.com/apache/lucene/pull/12979#discussion_r1437827341
##########
lucene/core/src/java/org/apache/lucene/index/CheckIndex.java:
##########
@@ -409,8 +408,8 @@ public static final class IndexSortStatus {
}
/** Status from testing soft deletes */
- public static final class SoftDeletsStatus {
- SoftDeletsStatus() {}
+ public static final class SoftDeletesStatus {
Review Comment:
Just FYI - I know it's tempting to do such cleanups as you browse the files for other things but it makes reviewing more complex. It'd be nice if the patches were focused on one thing - if it says replace "utf-8" constant with StandardCharsets.UTF-8, it'd be easier to review and apply if the patch didn't do other things, like renaming public classes, removing final, or access scope changes.
--
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: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [PR] Replace "UTF-8" with StandardCharsets.UTF_8 [lucene]
Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss merged PR #12979:
URL: https://github.com/apache/lucene/pull/12979
--
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: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [PR] Replace "UTF-8" with StandardCharsets.UTF_8 [lucene]
Posted by "sabi0 (via GitHub)" <gi...@apache.org>.
sabi0 commented on code in PR #12979:
URL: https://github.com/apache/lucene/pull/12979#discussion_r1437847255
##########
lucene/core/src/java/org/apache/lucene/index/CheckIndex.java:
##########
@@ -409,8 +408,8 @@ public static final class IndexSortStatus {
}
/** Status from testing soft deletes */
- public static final class SoftDeletsStatus {
- SoftDeletsStatus() {}
+ public static final class SoftDeletesStatus {
Review Comment:
Would it help if such cleanups were done in a separate commit? Or a separate PR would still be better?
--
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: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org