Skip to content

Commit

Permalink
Avoid obvious implicit casts
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejagodzinski committed Oct 25, 2021
1 parent fc73d32 commit d561060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/HttpEventCollector_Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public DataSender(String threadName, int testDurationInSecs, java.util.logging.L
public void run() {
Date dCurrent = new Date();
Date dEnd = new Date();
dEnd.setTime(dCurrent.getTime() + testDurationInSecs * 1000);
dEnd.setTime(dCurrent.getTime() + testDurationInSecs * 1000L);
while (dCurrent.before(dEnd)) {
this.logger.info(String.format("javautil thread: %s, event: %d", this.threadName, eventsGenerated++));
try {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/HttpLoggerStressTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public DataSender(String threadName, int testDurationInSecs) {
public void run() {
Date dCurrent = new Date();
Date dEnd = new Date();
dEnd.setTime(dCurrent.getTime() + testDurationInSecs * 1000);
dEnd.setTime(dCurrent.getTime() + testDurationInSecs * 1000L);
while(dCurrent.before(dEnd)) {
this.logger.info(String.format("Thread: %s, event: %d", this.threadName, eventsGenerated++));
dCurrent = new Date();
Expand Down

0 comments on commit d561060

Please sign in to comment.