1
0
Fork 0

code style fixes

This commit is contained in:
sspanak 2025-03-30 13:06:57 +03:00 committed by Dimo Karaivanov
parent 23a4a3530f
commit 19a29b8328
2 changed files with 1 additions and 5 deletions

View file

@ -161,7 +161,7 @@ public class SuggestionsBar {
// "..." prefix // "..." prefix
int startIndex = 0; int startIndex = 0;
String[] prefixes = {STEM_VARIATION_PREFIX, STEM_PUNCTUATION_VARIATION_PREFIX, Characters.COMBINING_ZERO_BASE}; String[] prefixes = {STEM_VARIATION_PREFIX, STEM_PUNCTUATION_VARIATION_PREFIX, Characters.COMBINING_ZERO_BASE};
for (String prefix : prefixes) { for (String prefix : prefixes) {
int prefixIndex = suggestion.indexOf(prefix) + 1; int prefixIndex = suggestion.indexOf(prefix) + 1;
if (prefixIndex < endIndex) { // do not match the prefix chars when they are part of STEM_SUFFIX if (prefixIndex < endIndex) { // do not match the prefix chars when they are part of STEM_SUFFIX
startIndex = Math.max(startIndex, prefixIndex); startIndex = Math.max(startIndex, prefixIndex);

View file

@ -15,10 +15,6 @@ public class SystemColor {
return color; return color;
} }
final public SystemColor toComplementary() {
return new SystemColor(0xFFFFFF - color);
}
final public String toCssColor() { final public String toCssColor() {
return "color:" + toHex() + ";"; return "color:" + toHex() + ";";
} }