Update ResultWriter.java

add review comments