@@ -221,7 +221,7 @@ private void openHandleOn(String path, boolean subtree) {
221221 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 ));
222222 if (isOpen ()) {
223223 fHandleValueToHandle .put (getHandleValue (), this );
224- setHandleValueArrays (createHandleArrays () );
224+ setHandleValueArrays ();
225225 } else {
226226 close ();
227227 }
@@ -369,7 +369,7 @@ public Win32Monitor(IRefreshResult result) {
369369 setPriority (Job .DECORATE );
370370 setSystem (true );
371371 fHandleValueToHandle = new HashMap <>(1 );
372- setHandleValueArrays (createHandleArrays () );
372+ setHandleValueArrays ();
373373 }
374374
375375 /**
@@ -424,7 +424,7 @@ private Handle createHandle(IResource resource) {
424424 * Win32Natives.MAXIMUM_WAIT_OBJECTS. The arrays are balanced so that they
425425 * differ in size by no more than one element.
426426 */
427- protected long [][] createHandleArrays () {
427+ private long [][] createHandleArrays () {
428428 long [] handles ;
429429 // synchronized: in order to protect the map during iteration
430430 synchronized (fHandleValueToHandle ) {
@@ -524,7 +524,7 @@ private void removeHandles(Collection<Handle> handles) {
524524 fHandleValueToHandle .remove (handle .getHandleValue ());
525525 handle .destroy ();
526526 }
527- setHandleValueArrays (createHandleArrays () );
527+ setHandleValueArrays ();
528528 }
529529 }
530530
@@ -572,8 +572,8 @@ protected IStatus run(IProgressMonitor monitor) {
572572 return Status .OK_STATUS ;
573573 }
574574
575- protected void setHandleValueArrays (long [][] arrays ) {
576- fHandleValueArrays = arrays ;
575+ private void setHandleValueArrays () {
576+ fHandleValueArrays = createHandleArrays () ;
577577 }
578578
579579 @ Override
0 commit comments