@Marco13 is probably correct, though the only way to be sure what the marker meant is to actually ask him or her.
For what it is worth, I think your marker is incorrect here. Clearly, the outer class is properly encapsulated, and the nested class is private
which means it is not visible outside of the outer class encapsulation boundary.
It is accepted Java practice that private inner classes do not necessarily need getters and setters for their fields.
Encapsulation is not a religion. It is used in Java for a purpose; i.e. to prevent implementation details from leaking. And declaring getters and setters also facilitates subclassing. But when the supposed purposes are moot (as they are here) use of encapsulation is not necessary.
If you want an apposite example, take a look at the Java source code for the standard LinkedList
class:
Note that the Entry
class does not have getters or setters ... and its fields are not declared as final
either.