code review fixes
This commit is contained in:
parent
d0579e9362
commit
60132b52dc
1 changed files with 2 additions and 6 deletions
|
|
@ -32,12 +32,8 @@ public class PreferenceSpecialCharList extends AbstractPreferenceCharList {
|
|||
char[] mandatoryChars = getSettings().getMandatoryPunctuation(language);
|
||||
|
||||
forbiddenChars = new char[mandatoryChars.length + SettingsStore.FORBIDDEN_SPECIAL_CHARS.length];
|
||||
for (char i = 0; i < mandatoryChars.length; i++) {
|
||||
forbiddenChars[i] = mandatoryChars[i];
|
||||
}
|
||||
for (char i = 0; i < SettingsStore.FORBIDDEN_SPECIAL_CHARS.length; i++) {
|
||||
forbiddenChars[i + mandatoryChars.length] = SettingsStore.FORBIDDEN_SPECIAL_CHARS[i];
|
||||
}
|
||||
System.arraycopy(mandatoryChars, 0, forbiddenChars, 0, mandatoryChars.length);
|
||||
System.arraycopy(SettingsStore.FORBIDDEN_SPECIAL_CHARS, 0, forbiddenChars, mandatoryChars.length, SettingsStore.FORBIDDEN_SPECIAL_CHARS.length);
|
||||
}
|
||||
|
||||
return forbiddenChars;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue