I was missing a break; statement; this caused an Error to be thrown during
some TMW->Wylie conversions. No conversions were erroneous, though.
This commit is contained in:
parent
6677d1e245
commit
a86a0f235b
1 changed files with 4 additions and 1 deletions
|
@ -950,6 +950,7 @@ public class TibTextUtils implements THDLWylieConstants {
|
||||||
} else if (TGCPair.SANSKRIT_WITHOUT_VOWEL == cls
|
} else if (TGCPair.SANSKRIT_WITHOUT_VOWEL == cls
|
||||||
|| TGCPair.SANSKRIT_WITH_VOWEL == cls) {
|
|| TGCPair.SANSKRIT_WITH_VOWEL == cls) {
|
||||||
candidateType = "invalid";
|
candidateType = "invalid";
|
||||||
|
break;
|
||||||
} else if (TGCPair.CONSONANTAL_WITHOUT_VOWEL == cls
|
} else if (TGCPair.CONSONANTAL_WITHOUT_VOWEL == cls
|
||||||
|| TGCPair.CONSONANTAL_WITH_VOWEL == cls) {
|
|| TGCPair.CONSONANTAL_WITH_VOWEL == cls) {
|
||||||
if (null == candidateType) {
|
if (null == candidateType) {
|
||||||
|
@ -1126,8 +1127,10 @@ public class TibTextUtils implements THDLWylieConstants {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if ("invalid" == candidateType)
|
||||||
|
throw new Error("forgot to break out of the for loop after diagnosing invalidity.");
|
||||||
if ("number" != candidateType)
|
if ("number" != candidateType)
|
||||||
throw new Error("missed a case");
|
throw new Error("missed a case; case is " + candidateType);
|
||||||
if (null != warnings)
|
if (null != warnings)
|
||||||
warnings.append("Found a consonant or consonant stack after something odd; the consonantish thing has wylie " + wylie + "\n");
|
warnings.append("Found a consonant or consonant stack after something odd; the consonantish thing has wylie " + wylie + "\n");
|
||||||
candidateType = "invalid";
|
candidateType = "invalid";
|
||||||
|
|
Loading…
Reference in a new issue