[java] Remove unnecessary Int64 cast in FileInput/Output