mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-25883 IOOBE: CharArray.charAt
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ public class GenericLineWrapPositionStrategy implements LineWrapPositionStrategy
|
||||
if (rule.condition == WrapCondition.BOTH || rule.condition == WrapCondition.AFTER) {
|
||||
int target = i+1;
|
||||
if (rule.symbol != ' ') {
|
||||
while(i < maxPreferredOffsetToUse && text.charAt(target) == ' ') {
|
||||
while(target < maxPreferredOffsetToUse && text.charAt(target) == ' ') {
|
||||
target++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user