Java 8 has retrofitted remove() to be a default method which
throws UnsupportedOperationException. Take advantage of this and
remove some of our code.
Change-Id: Ie4e4ac4ef947d5d65a3f5b80c249c21c35909f92
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
current = current.parent;
return ret;
}
-
- @Override
- public void remove() {
- throw new UnsupportedOperationException("Component removal not supported");
- }
};
}
public DataSchemaNode next() {
return allChilds.iterator().next();
}
-
- @Override
- public void remove() {
- throw new UnsupportedOperationException();
- }
}