Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt committed Aug 25, 2023
1 parent 76bfaaa commit aab672e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Options {
private Path externalJars;

public Options(String agentArgs) {
String[] args = agentArgs.split(",", -1);
String[] args = agentArgs.split(",");
Path sbomPath = null;
for (String arg : args) {
String[] split = arg.split("=");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.security.NoSuchAlgorithmException;
import java.security.ProtectionDomain;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
2 changes: 2 additions & 0 deletions watchdog-agent/src/test/java/OptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ void parse_jdk() throws Exception {
// generating 2 times the jdk fingerprint should result in the same fingerprint
Options options = new Options("skipShutdown=true");
Options options2 = new Options("skipShutdown=true");
assertThat(options.getJdkFingerprints()).isNotEmpty();
assertThat(options2.getJdkFingerprints()).isNotEmpty();
assertThat(options.getJdkFingerprints()).isNotEqualTo(options2.getJdkFingerprints());
}
}
Expand Down

0 comments on commit aab672e

Please sign in to comment.