@@ -221,7 +221,7 @@ private void openHandleOn(String path, boolean subtree) {
221
221
setHandleValue (createHandleValue (path , subtree , Win32Natives .FILE_NOTIFY_CHANGE_FILE_NAME | Win32Natives .FILE_NOTIFY_CHANGE_DIR_NAME | Win32Natives .FILE_NOTIFY_CHANGE_LAST_WRITE | Win32Natives .FILE_NOTIFY_CHANGE_SIZE ));
222
222
if (isOpen ()) {
223
223
fHandleValueToHandle .put (getHandleValue (), this );
224
- setHandleValueArrays (createHandleArrays () );
224
+ setHandleValueArrays ();
225
225
} else {
226
226
close ();
227
227
}
@@ -369,7 +369,7 @@ public Win32Monitor(IRefreshResult result) {
369
369
setPriority (Job .DECORATE );
370
370
setSystem (true );
371
371
fHandleValueToHandle = new HashMap <>(1 );
372
- setHandleValueArrays (createHandleArrays () );
372
+ setHandleValueArrays ();
373
373
}
374
374
375
375
/**
@@ -424,7 +424,7 @@ private Handle createHandle(IResource resource) {
424
424
* Win32Natives.MAXIMUM_WAIT_OBJECTS. The arrays are balanced so that they
425
425
* differ in size by no more than one element.
426
426
*/
427
- protected long [][] createHandleArrays () {
427
+ private long [][] createHandleArrays () {
428
428
long [] handles ;
429
429
// synchronized: in order to protect the map during iteration
430
430
synchronized (fHandleValueToHandle ) {
@@ -529,7 +529,7 @@ private void removeHandles(Collection<Handle> handles) {
529
529
fHandleValueToHandle .remove (handle .getHandleValue ());
530
530
handle .destroy ();
531
531
}
532
- setHandleValueArrays (createHandleArrays () );
532
+ setHandleValueArrays ();
533
533
}
534
534
}
535
535
@@ -577,8 +577,8 @@ protected IStatus run(IProgressMonitor monitor) {
577
577
return Status .OK_STATUS ;
578
578
}
579
579
580
- protected void setHandleValueArrays (long [][] arrays ) {
581
- fHandleValueArrays = arrays ;
580
+ private void setHandleValueArrays () {
581
+ fHandleValueArrays = createHandleArrays () ;
582
582
}
583
583
584
584
@ Override
0 commit comments