@Nullable
    @WorkerThread
    @Deprecated
    public static LottieComposition fromInputStreamSync(InputStream stream, boolean close) {
      if (close) {
        Logger.warning("Lottie now auto-closes input stream!");
      }
      return LottieCompositionFactory.fromJsonInputStreamSync(stream, null).getValue();
    }
This will now auto-close the input stream!

@see LottieCompositionFactory#fromJsonInputStreamSync(InputStream, String)
lottie/src/main/java/com/airbnb/lottie/LottieComposition.java