mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix AIOOBE in removeTail()
This commit is contained in:
@@ -68,7 +68,7 @@ public class PyQualifiedName {
|
||||
PyQualifiedName result = new PyQualifiedName(size);
|
||||
result.myComponents.addAll(myComponents);
|
||||
for (int i = 0; i < count && result.myComponents.size() > 0; i++) {
|
||||
result.myComponents.remove(size-1);
|
||||
result.myComponents.remove(result.myComponents.size()-1);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user