Skip to content

Commit 509fc8a

Browse files
committed
Add missing docs to stubs
1 parent 26c3ff2 commit 509fc8a

File tree

4 files changed

+130
-3
lines changed

4 files changed

+130
-3
lines changed

java/ql/test/stubs/dom4j-2.1.1/org/dom4j/Document.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
package org.dom4j;
1515

16-
import java.util.List;
17-
1816
public interface Document extends Branch {
1917

2018
}

java/ql/test/stubs/dom4j-2.1.1/org/dom4j/DocumentFactory.java

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
* See the bottom of this file for the licence.
66
*/
77

8+
/*
9+
* Adapted from DOM4J version 2.1.1 as available at
10+
* https://search.maven.org/remotecontent?filepath=org/dom4j/dom4j/2.1.1/dom4j-2.1.1-sources.jar
11+
* Only relevant stubs of this file have been retained for test purposes.
12+
*/
13+
814
package org.dom4j;
915

1016
import java.io.Serializable;
@@ -73,3 +79,40 @@ public void setXPathNamespaceURIs(Map<String, String> namespaceURIs) {
7379
}
7480

7581
}
82+
83+
/*
84+
* Redistribution and use of this software and associated documentation
85+
* ("Software"), with or without modification, are permitted provided that the
86+
* following conditions are met:
87+
*
88+
* 1. Redistributions of source code must retain copyright statements and
89+
* notices. Redistributions must also contain a copy of this document.
90+
*
91+
* 2. Redistributions in binary form must reproduce the above copyright notice,
92+
* this list of conditions and the following disclaimer in the documentation
93+
* and/or other materials provided with the distribution.
94+
*
95+
* 3. The name "DOM4J" must not be used to endorse or promote products derived
96+
* from this Software without prior written permission of MetaStuff, Ltd. For
97+
* written permission, please contact [email protected].
98+
*
99+
* 4. Products derived from this Software may not be called "DOM4J" nor may
100+
* "DOM4J" appear in their names without prior written permission of MetaStuff,
101+
* Ltd. DOM4J is a registered trademark of MetaStuff, Ltd.
102+
*
103+
* 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org
104+
*
105+
* THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND
106+
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
107+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
108+
* ARE DISCLAIMED. IN NO EVENT SHALL METASTUFF, LTD. OR ITS CONTRIBUTORS BE
109+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
110+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
111+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
112+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
113+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
114+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
115+
* POSSIBILITY OF SUCH DAMAGE.
116+
*
117+
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
118+
*/

java/ql/test/stubs/dom4j-2.1.1/org/dom4j/DocumentHelper.java

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@
55
* See the bottom of this file for the licence.
66
*/
77

8+
/*
9+
* Adapted from DOM4J version 2.1.1 as available at
10+
* https://search.maven.org/remotecontent?filepath=org/dom4j/dom4j/2.1.1/dom4j-2.1.1-sources.jar
11+
* Only relevant stubs of this file have been retained for test purposes.
12+
*/
13+
814
package org.dom4j;
915

1016
import java.util.List;
11-
import java.util.Map;
17+
1218
import org.dom4j.rule.Pattern;
1319
import org.jaxen.VariableContext;
1420

@@ -64,3 +70,40 @@ public static Element makeElement(Branch source, String path) {
6470
}
6571

6672
}
73+
74+
/*
75+
* Redistribution and use of this software and associated documentation
76+
* ("Software"), with or without modification, are permitted provided that the
77+
* following conditions are met:
78+
*
79+
* 1. Redistributions of source code must retain copyright statements and
80+
* notices. Redistributions must also contain a copy of this document.
81+
*
82+
* 2. Redistributions in binary form must reproduce the above copyright notice,
83+
* this list of conditions and the following disclaimer in the documentation
84+
* and/or other materials provided with the distribution.
85+
*
86+
* 3. The name "DOM4J" must not be used to endorse or promote products derived
87+
* from this Software without prior written permission of MetaStuff, Ltd. For
88+
* written permission, please contact [email protected].
89+
*
90+
* 4. Products derived from this Software may not be called "DOM4J" nor may
91+
* "DOM4J" appear in their names without prior written permission of MetaStuff,
92+
* Ltd. DOM4J is a registered trademark of MetaStuff, Ltd.
93+
*
94+
* 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org
95+
*
96+
* THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND
97+
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
98+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
99+
* ARE DISCLAIMED. IN NO EVENT SHALL METASTUFF, LTD. OR ITS CONTRIBUTORS BE
100+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
101+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
102+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
103+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
104+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
105+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
106+
* POSSIBILITY OF SUCH DAMAGE.
107+
*
108+
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
109+
*/

java/ql/test/stubs/dom4j-2.1.1/org/dom4j/util/ProxyDocumentFactory.java

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
* See the bottom of this file for the licence.
66
*/
77

8+
/*
9+
* Adapted from DOM4J version 2.1.1 as available at
10+
* https://search.maven.org/remotecontent?filepath=org/dom4j/dom4j/2.1.1/dom4j-2.1.1-sources.jar
11+
* Only relevant stubs of this file have been retained for test purposes.
12+
*/
13+
814
package org.dom4j.util;
915

1016
import org.dom4j.Document;
@@ -55,3 +61,40 @@ public Pattern createPattern(String xpathPattern) {
5561
}
5662

5763
}
64+
65+
/*
66+
* Redistribution and use of this software and associated documentation
67+
* ("Software"), with or without modification, are permitted provided that the
68+
* following conditions are met:
69+
*
70+
* 1. Redistributions of source code must retain copyright statements and
71+
* notices. Redistributions must also contain a copy of this document.
72+
*
73+
* 2. Redistributions in binary form must reproduce the above copyright notice,
74+
* this list of conditions and the following disclaimer in the documentation
75+
* and/or other materials provided with the distribution.
76+
*
77+
* 3. The name "DOM4J" must not be used to endorse or promote products derived
78+
* from this Software without prior written permission of MetaStuff, Ltd. For
79+
* written permission, please contact [email protected].
80+
*
81+
* 4. Products derived from this Software may not be called "DOM4J" nor may
82+
* "DOM4J" appear in their names without prior written permission of MetaStuff,
83+
* Ltd. DOM4J is a registered trademark of MetaStuff, Ltd.
84+
*
85+
* 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org
86+
*
87+
* THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND
88+
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
89+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
90+
* ARE DISCLAIMED. IN NO EVENT SHALL METASTUFF, LTD. OR ITS CONTRIBUTORS BE
91+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
92+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
93+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
94+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
95+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
96+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
97+
* POSSIBILITY OF SUCH DAMAGE.
98+
*
99+
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
100+
*/

0 commit comments

Comments
 (0)