code: private boolean performScan(File monitoredFile) {
          // Otherwise, test to see if the modifiedTime or size have changed
          long newTime = monitoredFile.lastModified();
          long newSize = monitoredFile.length();
  
          if (newTime != monitoredTime || newSize != monitoredSize) {
              monitoredTime = newTime;
              monitoredSize = newSize;
              return true;
          }
          return false;
      }
docs: Attempts to detect if the file has changed. The checked attributes are
  file size and modification time.
  <p>
  Be aware, there is a system/JDK limitation for Unix and Java 1.6 for
  detecting timestamp changes. See technote:
  https://www-01.ibm.com/support/docview.wss?uid=swg21446506
  <p>
  Added File parameter for better logging... otherwise it is difficult
  to know what is actually getting scanned.
  
  @param monitoredFile the file to scan
  @return {@code true} if the file has changed