Repository navigation
ICU-21006 Improve output from RBBI Monkey Test in ICU4J - #1023
Conversation
|
OK, here is the output I got by testing with Output from ICU4J ant checkTest -Dtestclass='com.ibm.icu.dev.test.rbbi.RBBITestMonkey' |
|
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
aheninger
left a comment
There was a problem hiding this comment.
Thanks for doing this.
I had only one minor suggestion; feel free to ignore it if you think it's not worth the trouble.
| // near any test failure. | ||
| int fCharProperty; | ||
|
|
||
| ArrayList<String> fClassNames; |
There was a problem hiding this comment.
If you create the fClassNames and fAppliedRules ArrayLists here, in the base class declaration, you can avoid having to create them separately in each subclass. Sort-of corresponds the to C++ version, where these are value objects, so implicitly created by the base class constructor.
| fSets.add(fExtendSet); | ||
| fSets.add(fRegionalIndicatorSet); | ||
| fSets = new ArrayList(); | ||
| fClassNames = new ArrayList(); |
There was a problem hiding this comment.
This line and the next could be deleted if the initialization is moved to the base class.
(fSets can't be done that way as easily, because it's not currently declared in the base class.)
| fSets.add(fRegionalIndicatorSet); | ||
| fSets.add(fHebrew_LetterSet); | ||
| fSets.add(fALetterSet); | ||
| fClassNames = new ArrayList(); |
| { | ||
| fCharProperty = UProperty.LINE_BREAK; | ||
| fSets = new ArrayList(); | ||
| fClassNames = new ArrayList(); |
| fCharProperty = UProperty.SENTENCE_BREAK; | ||
|
|
||
| fSets = new ArrayList(); | ||
| fClassNames = new ArrayList(); |
|
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
Port the C++ changes in https://github.com/unicode-org/icu/pull/730/files
to Java.
Checklist