Fixed the syntax of previous commit to be in Java instead of Python.