diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/util/VoteResolver.java b/tools/cldr-code/src/main/java/org/unicode/cldr/util/VoteResolver.java index f61de085193..808e83f5b5b 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/util/VoteResolver.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/util/VoteResolver.java @@ -86,7 +86,7 @@ public String getTranscript() { * @param fmt * @param args */ - private final void annotateTranscript(String fmt, Object... args) { + private void annotateTranscript(String fmt, Object... args) { if (DEBUG) { System.out.println("Transcript: " + String.format(fmt, args)); } @@ -108,8 +108,8 @@ private final void annotateTranscript(String fmt, Object... args) { *
Status corresponds to icons as follows: A checkmark means it’s approved and is slated to * be used. A cross means it’s a missing value. Green/orange check: The item has enough votes to * be used in CLDR. Red/orange/black X: The item does not have enough votes to be used in CLDR, - * by most implementations (or is completely missing). Reference: - * http://cldr.unicode.org/translation/getting-started/guide + * by most implementations (or is completely missing). Reference: guide * *
When the item is inherited, i.e., winningValue is INHERITANCE_MARKER (↑↑↑), then * orange/red X are replaced by orange/red up-arrow. That change is made only on the client. @@ -117,6 +117,8 @@ private final void annotateTranscript(String fmt, Object... args) { *
Status.approved: green check Status.contributed: orange check Status.provisional: orange X * (or orange up-arrow if inherited) Status.unconfirmed: red X (or red up-arrow if inherited * Status.missing: black X + * + *
Not to be confused with VoteResolver.VoteStatus
*/
public enum Status {
missing,
@@ -296,10 +298,10 @@ public boolean canVoteWithCount(Organization org, int withVotes) {
/**
* Get the ordered immutable set of different vote counts a user of this level can vote with
*
- * @param org the given organization
+ * @param ignoredOrg the given organization
* @return the set, or null if the user has no choice of vote count
*/
- public ImmutableSet Not to be confused with VoteResolver.Status
+ */
public enum VoteStatus {
/**
* The value for the path is either contributed or approved, and the user's organization
- * didn't vote. (see class def for null user)
+ * didn't vote.
*/
ok_novotes,
/**
* The value for the path is either contributed or approved, and the user's organization
- * chose the winning value. (see class def for null user)
+ * chose the winning value.
*/
ok,
- /**
- * The user's organization chose the winning value for the path, but that value is neither
- * contributed nor approved. (see class def for null user)
- */
+ /** The winning value is neither contributed nor approved. */
provisionalOrWorse,
/**
- * The user's organization's choice is not winning. There may be insufficient votes to
- * overcome a previously approved value, or other organizations may be voting against it.
- * (see class def for null user)
+ * The user's organization's choice is not winning, and the winning value is either
+ * contributed or approved. There may be insufficient votes to overcome a previously
+ * approved value, or other organizations may be voting against it.
*/
losing,
@@ -589,9 +592,11 @@ private class OrganizationToValueAndVote http://unicode.org/repos/cldr/tags/latest/common/annotations/
*
- * This function is where the essential algorithm needs to be implemented for
- * http://unicode.org/cldr/trac/ticket/10973
- *
* @param sortedValues the set of sorted values
* @param voteCount the hash giving the vote count for each value in sortedValues
* public for unit testing, see TestAnnotationVotes.java