Created
July 10, 2015 16:12
-
-
Save dmlloyd/baadb767c03574adba69 to your computer and use it in GitHub Desktop.
Broken @throws?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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