@@ -360,12 +360,15 @@ public DoChangeContents call() {
360
360
break ;
361
361
}
362
362
}
363
- if (start >= 0 && end > start
364
- && newFileCache .subList (end , newSize ).equals (fileCache .subList (start , oldSize ))) {
365
- if (loadThread .isInterrupted ()) {
366
- return null ;
363
+
364
+ if (start >= 0 && end > start ) {
365
+ List <File > listStart_OldSize = new Vector <>(fileCache .subList (start , oldSize ));
366
+ if (newFileCache .subList (end , newSize ).equals (listStart_OldSize )) {
367
+ if (loadThread .isInterrupted ()) {
368
+ return null ;
369
+ }
370
+ return new DoChangeContents (newFileCache .subList (start , end ), start , null , 0 , fid );
367
371
}
368
- return new DoChangeContents (newFileCache .subList (start , end ), start , null , 0 , fid );
369
372
}
370
373
} else if (newSize < oldSize ) {
371
374
//see if interval is removed
@@ -378,12 +381,15 @@ public DoChangeContents call() {
378
381
break ;
379
382
}
380
383
}
381
- if (start >= 0 && end > start
382
- && fileCache .subList (end , oldSize ).equals (newFileCache .subList (start , newSize ))) {
383
- if (loadThread .isInterrupted ()) {
384
- return null ;
384
+
385
+ if (start >= 0 && end > start ) {
386
+ List <File > listEnd_OldSize = new Vector <>(fileCache .subList (end , oldSize ));
387
+ if (listEnd_OldSize .equals (newFileCache .subList (start , newSize ))) {
388
+ if (loadThread .isInterrupted ()) {
389
+ return null ;
390
+ }
391
+ return new DoChangeContents (null , 0 , new Vector <>(fileCache .subList (start , end )), start , fid );
385
392
}
386
- return new DoChangeContents (null , 0 , new Vector <>(fileCache .subList (start , end )), start , fid );
387
393
}
388
394
}
389
395
if (!fileCache .equals (newFileCache )) {
1 commit comments
openjdk-notifier[bot] commentedon Jun 7, 2024
Review
Issues