Changed two Java nested classes into static nested classes. Both do not need an implicitly created reference to enclosing class.