public static boolean hasErrFound(){
synchronized (workerLock) {
    return (errFoundByThread != -1);
  }
}

public static boolean hasErrFound ( ) { synchronized ( workerLock ) { return ( errFoundByThread != - 1 ) ; } }
returns true iff an error has already been found .
