removed a redundant var in JavaWriter.flagsToStr

the variable x was assigned to, but was never used.