presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/util/SyncingFileSystem.java/SyncingFileSystem/write
class SyncingFileSystem:        @SuppressWarnings("NumericCastThatLosesPrecision")
        @Override
        public void write(int b)
                throws IOException
        {
            oneByte[0] = (byte) (b & 0xFF);
            write(oneByte, 0, 1);
        }