Fix compilation errors in Listener.java

We want to ensure that we treat entries in a fair manner. As part of this, if we encounter a compile error we will do our best to fix it ourselves such that we are able to test it effectively. The existence of this issue may harm your code quality points, but fixing it will allow us to evaluate the other categories.