Skip to content

Commit

Permalink
Upgrading to spotbugs 4.7.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
aaime committed Apr 29, 2023
1 parent 52c299e commit 690be33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ protected ModelAndView handleRequestInternal(
throw new ServletException("Expected url parameter.");
}

synchronized (this) {
// lastRequest is static, static synchronization needed
synchronized (ProxyDispatcher.class) {
long time = System.currentTimeMillis();
if (time - lastRequest < 1000) {
throw new ServletException("Only one request per second please.");
Expand Down
4 changes: 2 additions & 2 deletions geowebcache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.0.0</version>
<version>4.7.3.4</version>
<executions>
<execution>
<goals>
Expand All @@ -894,12 +894,12 @@
</execution>
</executions>
<configuration>
<fork>false</fork>
<effort>More</effort>
<!--threshold>High</threshold-->
<xmlOutput>true</xmlOutput>
<maxRank>15</maxRank>
<excludeFilterFile>${geowebcacheBaseDir}/spotbugs-exclude.xml</excludeFilterFile>
<jvmArgs>-XX:+TieredCompilation -XX:TieredStopAtLevel=1</jvmArgs>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 690be33

Please sign in to comment.