don't display warning about legacy InputStream method