src/java_tools/buildjar/java/com/google/devtools/build/buildjar/JarHelper.java
/**
   * Returns the normalized timestamp for a jar entry based on its name.
   * This is necessary since javac will, when loading a class X, prefer a
   * source file to a class file, if both files have the same timestamp.
   * Therefore, we need to adjust the timestamp for class files to slightly
   * after the normalized time.
   * @param name The name of the file for which we should return the
   *     normalized timestamp.
   * @return the time for a new Jar file entry in milliseconds since the epoch.
   */
Returns the normalized timestamp for a jar entry based on its name.
This is necessary since javac will, when loading a class X, prefer a
source file to a class file, if both files have the same timestamp.
Therefore, we need to adjust the timestamp for class files to slightly
after the normalized time.
@param name The name of the file for which we should return the
normalized timestamp.
@return the time for a new Jar file entry in milliseconds since the epoch.
Returns the normalized timestamp for a jar entry based on its name . This is necessary since javac will when loading a class X prefer a source file to a class file if both files have the same timestamp . Therefore we need to adjust the timestamp for class files to slightly after the normalized time . @param name The name of the file for which we should return the normalized timestamp . @return the time for a new Jar file entry in milliseconds since the epoch .
private long normalizedTimestamp(String name) {
    if (name.endsWith(".class")) {
      return DOS_EPOCH_IN_JAVA_TIME + MINIMUM_TIMESTAMP_INCREMENT;
    } else {
      return DOS_EPOCH_IN_JAVA_TIME;
    }
  }
private long normalizedTimestamp ( String name ) { if ( name . endsWith ( ".class" ) ) { return DOS_EPOCH_IN_JAVA_TIME + MINIMUM_TIMESTAMP_INCREMENT ; } else { return DOS_EPOCH_IN_JAVA_TIME ; } }
Returns the normalized timestamp for a jar entry based on its name.
Returns the normalized timestamp for a jar entry based on its name .