Skip to content

Commit f5ea586

Browse files
Make it a long right away to prevent implicit casting
Signed-off-by: Henri Tremblay <[email protected]>
1 parent 523e95e commit f5ea586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ protected boolean shouldPull(Git git) throws GitAPIException {
503503
boolean shouldPull;
504504

505505
if (this.refreshRate < 0 || (this.refreshRate > 0
506-
&& System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000))) {
506+
&& System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000L))) {
507507
return false;
508508
}
509509

0 commit comments

Comments
 (0)