remove pedantic setters/getters from Java example