update gradlew 1.10
remove duplicated code
refactor MessageFormatter
use MessageFormatter.arrayFormat