Skip to content

Commit

Permalink
Merge pull request #50 from Codeforces/dev-mikemirzayanov
Browse files Browse the repository at this point in the history
PowFilter + migrated to findbugs 3.0.2 + prometheus client 0.16.0
  • Loading branch information
MikeMirzayanov authored Mar 22, 2024
2 parents 436f96d + 41de42d commit ea762d6
Show file tree
Hide file tree
Showing 4 changed files with 436 additions and 357 deletions.
7 changes: 3 additions & 4 deletions code/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>3.0.1u2</version>
<scope>compile</scope>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
Expand Down Expand Up @@ -239,7 +238,7 @@
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
<version>0.15.0</version>
<version>0.16.0</version>
</dependency>
</dependencies>

Expand Down
780 changes: 429 additions & 351 deletions code/src/main/java/org/nocturne/ddos/PowFilter.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ private static void setupReloadingClassPaths() {
if (dir != null && !dir.isEmpty()) {
File file = new File(dir);
if (!file.isDirectory() && ApplicationContext.getInstance().isDebug()) {
throw new ConfigurationException("Each item in nocturne.reloading-class-paths should be a directory.");
throw new ConfigurationException("Each item in nocturne.reloading-class-paths should be a directory,"
+ " but " + file + " is not.");
}
reloadingClassPaths.add(file);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ private static void setupReloadingClassPaths() {
if (!dir.isEmpty()) {
File file = new File(dir);
if (!file.isDirectory() && ReloadingContext.getInstance().isDebug()) {
throw new ConfigurationException("Each item in nocturne.reloading-class-paths should be a directory.");
throw new ConfigurationException("Each item in nocturne.reloading-class-paths should be a directory,"
+ " but '" + file + "' isn't.");
}
reloadingClassPaths.add(file);
}
Expand Down

0 comments on commit ea762d6

Please sign in to comment.