Skip to content

Instantly share code, notes, and snippets.

@ktoso
Created February 9, 2011 01:23
Show Gist options
  • Save ktoso/817695 to your computer and use it in GitHub Desktop.
Save ktoso/817695 to your computer and use it in GitHub Desktop.
które wolisz?
// obecnie
@ThrowEnsures({
"NotEnoughBananasException", "countBananas() == 0"
})
// wolałbym tak, "normalniej":
@ThrowEnsures(thrown = {
@Thrown(exception = NotEnoughBananasException.class, when = "countBananas() == 0")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment