File tree Expand file tree Collapse file tree 3 files changed +487
-32
lines changed
src/main/java/org/exist/xquery Expand file tree Collapse file tree 3 files changed +487
-32
lines changed Original file line number Diff line number Diff line change 712
712
<exclude >src/test/java/org/exist/xquery/functions/session/AttributeTest.java</exclude >
713
713
<exclude >src/test/java/org/exist/xquery/functions/xmldb/XMLDBAuthenticateTest.java</exclude >
714
714
<exclude >src/main/java/org/exist/xquery/functions/util/Eval.java</exclude >
715
+ <exclude >src/main/java/org/exist/xquery/pragmas/TimePragma.java</exclude >
715
716
<exclude >src/test/java/org/exist/xquery/util/URIUtilsTest.java</exclude >
716
717
<exclude >src/main/java/org/exist/xquery/value/ArrayListValueSequence.java</exclude >
717
718
<exclude >src/test/java/org/exist/xquery/value/BifurcanMapTest.java</exclude >
@@ -862,6 +863,7 @@ The original license statement is also included below.]]></preamble>
862
863
<include >src/test/java/org/exist/xquery/functions/session/AttributeTest.java</include >
863
864
<include >src/test/java/org/exist/xquery/functions/xmldb/XMLDBAuthenticateTest.java</include >
864
865
<include >src/main/java/org/exist/xquery/functions/util/Eval.java</include >
866
+ <include >src/main/java/org/exist/xquery/pragmas/TimePragma.java</include >
865
867
<include >src/test/java/org/exist/xquery/util/URIUtilsTest.java</include >
866
868
<include >src/main/java/org/exist/xquery/value/ArrayListValueSequence.java</include >
867
869
<include >src/test/java/org/exist/xquery/value/BifurcanMapTest.java</include >
Original file line number Diff line number Diff line change 28
28
import org .exist .Namespaces ;
29
29
import org .exist .dom .QName ;
30
30
31
+ import javax .annotation .Nullable ;
32
+
31
33
/**
32
34
* Represents an XQuery option declared via "declare option".
33
35
*
@@ -89,9 +91,9 @@ public static String[] tokenize(final String contents) {
89
91
return items ;
90
92
}
91
93
92
- public static String [] parseKeyValuePair (final String s ) {
94
+ public static @ Nullable String [] parseKeyValuePair (final String s ) {
93
95
final Matcher matcher = pattern .matcher (s );
94
- if (matcher .matches ()) {
96
+ if (matcher .matches ()) {
95
97
String value = matcher .group (2 );
96
98
if (value .charAt (0 ) == '\'' || value .charAt (0 ) == '"' ) {
97
99
value = value .substring (1 , value .length () - 1 );
You can’t perform that action at this time.
0 commit comments