ccristian / caliper

Automatically exported from code.google.com/p/caliper
Apache License 2.0
0 stars 0 forks source link

1.0-beta1 uses obsolete Closeables.closeQuietly from Guava 15.0- #286

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
CaliperMain uses com/google/caliper/util/Util.java, method loadProperties(), 
line 62:

  public static ImmutableMap<String, String> loadProperties(
      InputSupplier<? extends InputStream> is) throws IOException {
    Properties props = new Properties();
    InputStream in = is.getInput();
    try {
      props.load(in);
    } finally {
      Closeables.closeQuietly(in); // HERE
    }
    return Maps.fromProperties(props);
  }

This method has disappeared in 16.0+, and I use Guava 16.0.1in my project.

Original issue reported on code.google.com by fgalie...@gmail.com on 10 Feb 2014 at 12:07

GoogleCodeExporter commented 9 years ago
This is fixed at HEAD

Original comment by gak@google.com on 10 Feb 2014 at 4:32