Uh oh!
There was an error while loading. Please reload this page.
HBASE-27203 Clean up error-prone findings in hbase-client - #4644
Conversation
Apache-HBase
commented
Jul 23, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 23, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 23, 2022
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } catch (IllegalArgumentException iae) { | ||
| } catch (Exception e) { | ||
| fail("expected IllegalArgumentException to be thrown"); | ||
| // Expected |
There was a problem hiding this comment.
I think we could file another issue to change these tests to use assertThrows. Anyway, the current modifications make the code better, can open a follow on issue for changing to assertThrows.
| } | ||
| @Test | ||
| @SuppressWarnings("ArrayAsKeyOfSetOrMap") |
There was a problem hiding this comment.
Since this is a test, let's just use TreeMap with Bytes.BYTES_COMPARATOR instead of HashMap to remove the warning?
There was a problem hiding this comment.
I thought I went back and undid my changes related to ArrayAsKeyOfSetOrMap while revising the patch but see that I left this one in place.
| } | ||
| @Test | ||
| @SuppressWarnings("ArrayAsKeyOfSetOrMap") |
Uh oh!
There was an error while loading. Please reload this page.
apurtell
commented
Jul 25, 2022
Rebase. Address review feedback. More javadoc cleanups. |
Apache-HBase
commented
Jul 26, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 26, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 26, 2022
🎊 +1 overall
This message was automatically generated. |
| /** Splitting fully qualified Kerberos name into parts */ | ||
| public static String[] splitKerberosName(String fullName) { | ||
| return fullName.split("[/@]"); | ||
| List<String> result = Splitter.onPattern("[/@]").splitToList(fullName); |
There was a problem hiding this comment.
return Splitter.onPattern("[/@]").splitToStream(fullName).toArray(String[]::new);
There was a problem hiding this comment.
You indicated a preference for using a stream to do toArray on the hbase-backup review, will apply the pattern to all such places, no problem
No description provided.