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 758
758
<exclude >src/test/java/org/exist/xquery/functions/session/AttributeTest.java</exclude >
759
759
<exclude >src/test/java/org/exist/xquery/functions/xmldb/XMLDBAuthenticateTest.java</exclude >
760
760
<exclude >src/main/java/org/exist/xquery/functions/util/Eval.java</exclude >
761
+ <exclude >src/main/java/org/exist/xquery/pragmas/TimePragma.java</exclude >
761
762
<exclude >src/test/java/org/exist/xquery/util/URIUtilsTest.java</exclude >
762
763
<exclude >src/main/java/org/exist/xquery/value/ArrayListValueSequence.java</exclude >
763
764
<exclude >src/test/java/org/exist/xquery/value/BifurcanMapTest.java</exclude >
@@ -918,6 +919,7 @@ The original license statement is also included below.]]></preamble>
918
919
<include >src/test/java/org/exist/xquery/functions/session/AttributeTest.java</include >
919
920
<include >src/test/java/org/exist/xquery/functions/xmldb/XMLDBAuthenticateTest.java</include >
920
921
<include >src/main/java/org/exist/xquery/functions/util/Eval.java</include >
922
+ <include >src/main/java/org/exist/xquery/pragmas/TimePragma.java</include >
921
923
<include >src/test/java/org/exist/xquery/util/URIUtilsTest.java</include >
922
924
<include >src/main/java/org/exist/xquery/value/ArrayListValueSequence.java</include >
923
925
<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