@@ -49,8 +49,8 @@ public class QName implements Comparable<QName> {
49
49
public static final QName DOCTYPE_QNAME = EMPTY_QNAME ;
50
50
public static final QName CDATA_SECTION_QNAME = EMPTY_QNAME ;
51
51
52
- private static final Pattern ptnClarkNotation = Pattern .compile ("\\ {([^&{}]*)}([^&{}:]+)" );
53
- private static final Pattern ptnEqNameNotation = Pattern .compile ("Q" + ptnClarkNotation );
52
+ private static final Pattern PTN_CLARK_NOTATION = Pattern .compile ("\\ {([^&{}]*)}([^&{}:]+)" );
53
+ private static final Pattern PTN_EQ_NAME_NOTATION = Pattern .compile ("Q" + PTN_CLARK_NOTATION );
54
54
55
55
private final String localPart ;
56
56
private final String namespaceURI ;
@@ -168,7 +168,7 @@ public final String toURIQualifiedName() {
168
168
* @return the QName
169
169
*/
170
170
public static QName fromURIQualifiedName (final String uriQualifiedName ) {
171
- final Matcher matcher = ptnClarkNotation .matcher (uriQualifiedName );
171
+ final Matcher matcher = PTN_CLARK_NOTATION .matcher (uriQualifiedName );
172
172
if (!matcher .matches ()) {
173
173
throw new IllegalArgumentException ("Argument is not a URIQualifiedName" );
174
174
}
@@ -334,7 +334,7 @@ public static QName parse(final Context context, final String qname, final Strin
334
334
335
335
// quick test if qname is in clark notation
336
336
if (firstChar == '{' ) {
337
- final Matcher clarkNotation = ptnClarkNotation .matcher (qname );
337
+ final Matcher clarkNotation = PTN_CLARK_NOTATION .matcher (qname );
338
338
339
339
// more expensive check
340
340
if (clarkNotation .matches ()) {
@@ -347,7 +347,7 @@ public static QName parse(final Context context, final String qname, final Strin
347
347
348
348
// quick test if qname is in EqName notation
349
349
if (firstChar == 'Q' ) {
350
- final Matcher eqNameNotation = ptnEqNameNotation .matcher (qname );
350
+ final Matcher eqNameNotation = PTN_EQ_NAME_NOTATION .matcher (qname );
351
351
352
352
// more expensive check
353
353
if (eqNameNotation .matches ()) {
0 commit comments