我想知道是否有一种优雅的方法来避免preparedStatement调用中的幻数错误,请考虑: result = preparedStatement.executeUpdate();
setString方法被标记为幻数,到目前为止,我只是将3-10左右的数字添加到了幻数的忽略列表中,但我想知道是否有更好的方法将这些值插入到
例如nasm -f bin boot.asm -o boot.bintimes 510 - ($-$$) db 0 ; Pad the remainingMagic bytes required at end of boot sector
输出的boot.bin文件总是512字节(预期),所以我不能简单地查看boot.bin的大小来获得有意义的(无填充和非幻数字节最好避免一些老套的方法,比如在运行时打印或者在boot.bin中向后搜索非零值。