private static void writeModelJAR(String outPath) throws IOException {
    Preconditions.checkArgument(
        outPath.endsWith(MODEL_JAR_SUFFIX), "invalid model file path! " + outPath);
    ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(outPath));
    if (!map_result.isEmpty()) {
      ZipEntry entry = new ZipEntry(DEFAULT_ASTUBX_LOCATION);
      // Set the modification/creation time to 0 to ensure that this jars always have the same
      // checksum
      entry.setTime(0);
      entry.setCreationTime(FileTime.fromMillis(0));
      zos.putNextEntry(entry);
      writeModel(new DataOutputStream(zos));
      zos.closeEntry();
    }
    zos.close();
    LOG(VERBOSE, "Info", "wrote model to: " + outPath);
  }
private static void writeModelJAR ( String outPath ) throws IOException { Preconditions . checkArgument ( outPath . endsWith ( MODEL_JAR_SUFFIX ) , "invalid model file path! " + outPath ) ; ZipOutputStream zos = new ZipOutputStream ( new FileOutputStream ( outPath ) ) ; if ( ! map_result . isEmpty ( ) ) { ZipEntry entry = new ZipEntry ( DEFAULT_ASTUBX_LOCATION ) ; entry . setTime ( 0 ) ; entry . setCreationTime ( FileTime . fromMillis ( 0 ) ) ; zos . putNextEntry ( entry ) ; writeModel ( new DataOutputStream ( zos ) ) ; zos . closeEntry ( ) ; } zos . close ( ) ; LOG ( VERBOSE , "Info" , "wrote model to: " + outPath ) ; }
Write model jar file with nullability model at DEFAULT_ASTUBX_LOCATION

@param outPath Path of output model jar file.