Skip to content

Instantly share code, notes, and snippets.

@nesterione
Created January 25, 2017 18:59
Show Gist options
  • Select an option

  • Save nesterione/3226a646e45e650285bef773bf4c57cc to your computer and use it in GitHub Desktop.

Select an option

Save nesterione/3226a646e45e650285bef773bf4c57cc to your computer and use it in GitHub Desktop.
for (KeyValuePair keyValuePair : rootNode.getMetadata()) {
if (StringUtils.startsWith(keyValuePair.getKey(), id)) {
rootNode.getMetadata().remove(keyValuePair);
}
}
@nesterione
Copy link
Author

Question 1: What kind of exception will this code throw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment