Restore errorprone to the build

This commit is contained in:
jamesagnew 2019-12-15 19:11:27 -05:00
parent e1f2d044ed
commit f2221bcc69
7 changed files with 576 additions and 494 deletions

View File

@ -175,6 +175,23 @@
</dependencySourceIncludes>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<dumpOnExit>true</dumpOnExit>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -47,6 +47,21 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<dumpOnExit>true</dumpOnExit>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -173,4 +173,26 @@
</plugins>
</reporting>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<dumpOnExit>true</dumpOnExit>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -277,7 +277,7 @@ public class SearchFilterParser {
cursor++;
result.setFilter(parseOpen());
if (peek() != FilterLexType.fsltCloseSq) {
throw new FilterSyntaxException(String.format("Expected ']' at %d but found %c",
throw new FilterSyntaxException(String.format("Expected ']' at %d but found %s",
cursor,
peekCh()));
}
@ -287,13 +287,13 @@ public class SearchFilterParser {
if (peek() == FilterLexType.fsltDot) {
cursor++;
if (peek() != FilterLexType.fsltName) {
throw new FilterSyntaxException(String.format("Unexpected Character %c at %d",
throw new FilterSyntaxException(String.format("Unexpected Character %s at %d",
peekCh(),
cursor));
}
result.setNext(parsePath(consumeName()));
} else if (result.getFilter() != null) {
throw new FilterSyntaxException(String.format("Expected '.' at %d but found %c",
throw new FilterSyntaxException(String.format("Expected '.' at %d but found %s",
cursor,
peekCh()));
}

View File

@ -32,7 +32,6 @@ import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.junit.BeforeClass;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
@ -75,7 +74,6 @@ public class RestfulServerRule implements TestRule {
myHttpClient.close();
}
@BeforeClass
private void startServer() throws Exception {
myServer = new Server(0);

View File

@ -420,6 +420,21 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<dumpOnExit>true</dumpOnExit>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>

15
pom.xml
View File

@ -2262,6 +2262,21 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<dumpOnExit>true</dumpOnExit>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>