Skip to content

Instantly share code, notes, and snippets.

@runeflobakk
Created October 18, 2011 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runeflobakk/1296896 to your computer and use it in GitHub Desktop.
Save runeflobakk/1296896 to your computer and use it in GitHub Desktop.
Snippet: Dersom det ikke finnes ConfigAttributes som støttes av SecurityLevelVoter, returner ACCESS_ABSTAIN
Collection<ConfigAttribute> supportedAttributes = select(attributes, new SupportedBy(this));
if (supportedAttributes.isEmpty()) {
return ACCESS_ABSTAIN;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment