Skip to content

Commit

Permalink
#70 parent 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Oct 8, 2015
1 parent a83b897 commit 600ffff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<parent>
<groupId>com.jcabi</groupId>
<artifactId>jcabi</artifactId>
<version>1.17</version>
<version>1.20.1</version>
</parent>
<artifactId>jcabi-xml</artifactId>
<version>1.0-SNAPSHOT</version>
Expand Down Expand Up @@ -211,7 +211,7 @@
<groupId>com.qulice</groupId>
<artifactId>qulice-maven-plugin</artifactId>
<configuration>
<excludes>
<excludes combine.children="append">
<exclude>xml:/src/it/settings.xml</exclude>
<exclude>xml:/src/test/resources/com/jcabi/xml/.*</exclude>
</excludes>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/jcabi/xml/ListWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ public Object[] toArray() {
}

@Override
@SuppressWarnings("PMD.UseVarargs")
public <E> E[] toArray(final E[] array) {
return this.original.toArray(array);
}
Expand Down
10 changes: 7 additions & 3 deletions src/main/java/com/jcabi/xml/XMLDocument.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,13 @@ public Node node() {

@Override
@NotNull(message = "list of texts is never NULL")
@SuppressWarnings(
{ "PMD.ExceptionAsFlowControl", "PMD.PreserveStackTrace" }
)
@SuppressWarnings
(
{
"PMD.ExceptionAsFlowControl",
"PMD.PreserveStackTrace"
}
)
public List<String> xpath(@NotNull final String query) {
List<String> items;
try {
Expand Down
11 changes: 7 additions & 4 deletions src/test/java/com/jcabi/xml/XSDDocumentTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,13 @@ public void detectsSchemaViolations() throws Exception {
* @throws Exception If something goes wrong inside
*/
@Test
@SuppressWarnings({
"PMD.AvoidInstantiatingObjectsInLoops",
"PMD.InsufficientStringBufferDeclaration"
})
@SuppressWarnings
(
{
"PMD.AvoidInstantiatingObjectsInLoops",
"PMD.InsufficientStringBufferDeclaration"
}
)
public void validatesComplexXml() throws Exception {
final String xsd = StringUtils.join(
"<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' >",
Expand Down

0 comments on commit 600ffff

Please sign in to comment.