完善阅读下载策略
This commit is contained in:
1 parent
374ed3a515
commit
a2bbe855e8
38 files changed
+1297
-2142
No files matched your search
@@ -67,7 +67,7 @@ public class AutoExpandArray<E> {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public synchronized E get(int index) {
|
||||
if (index >= array.length) {
|
||||
if (index >= array.length || index < 0) {
|
||||
return null;
|
||||
}
|
||||
return (E)array[index];
|
||||
|
||||
Reference in new issue
Block a user