@@ -89,6 +89,7 @@ public URN() {
8989 * Public ctor.
9090 * @param text The text of the URN
9191 * @throws URISyntaxException If syntax is not correct
92+ * @checkstyle ConstructorsCodeFreeCheck (10 lines)
9293 */
9394 public URN (final String text ) throws URISyntaxException {
9495 if (text == null ) {
@@ -105,6 +106,8 @@ public URN(final String text) throws URISyntaxException {
105106 * Public ctor.
106107 * @param nid The namespace ID
107108 * @param nss The namespace specific string
109+ * @checkstyle ConstructorsCodeFreeCheck (20 lines)
110+ * @checkstyle ConstructorsOrderCheck (20 lines)
108111 */
109112 public URN (final String nid , final String nss ) {
110113 if (nid == null ) {
@@ -139,6 +142,7 @@ public static URN create(final String text) {
139142 throw new IllegalArgumentException ("URN can't be NULL" );
140143 }
141144 try {
145+ // @checkstyle QualifyInnerClassCheck (1 line)
142146 return new URN (text );
143147 } catch (final URISyntaxException ex ) {
144148 throw new IllegalArgumentException (ex );
@@ -182,6 +186,7 @@ public int compareTo(final URN urn) {
182186 public static boolean isValid (final String text ) {
183187 boolean valid = true ;
184188 try {
189+ // @checkstyle QualifyInnerClassCheck (1 line)
185190 new URN (text );
186191 } catch (final URISyntaxException ex ) {
187192 valid = false ;
@@ -450,5 +455,4 @@ private static boolean allowed(final byte chr) {
450455 || chr >= 'a' && chr <= 'z'
451456 || chr == '/' || chr == '-' ;
452457 }
453-
454458}
0 commit comments