fixing weird code from java 1.8 to allow UML plugin to work