Skip to content

Instantly share code, notes, and snippets.

@dmlloyd
Created July 10, 2015 16:12
Show Gist options
  • Select an option

  • Save dmlloyd/baadb767c03574adba69 to your computer and use it in GitHub Desktop.

Select an option

Save dmlloyd/baadb767c03574adba69 to your computer and use it in GitHub Desktop.
Broken @throws?
/**
* Construct a new instance.
*
* @param urlScheme the URL scheme
* @param enumeration the name components
* @throws InvalidNameException if the name is not valid <--- this is being reported as "Invalid use of @throws"
*/
public URLSchemeName(final String urlScheme, final Enumeration<String> enumeration) throws InvalidNameException {
super(enumeration);
Assert.checkNotNullParam("urlScheme", urlScheme);
if (! validPattern.matcher(urlScheme).matches()) {
throw Messages.log.invalidNameUrlScheme(urlScheme);
}
this.urlScheme = urlScheme;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment