From 448e126521194a02a93a172dfb65065551914e98 Mon Sep 17 00:00:00 2001 From: Hrushi20 Date: Sat, 28 Oct 2023 05:36:45 +0530 Subject: [PATCH] Fixed spotbug issue, update pom.xml Signed-off-by: Hrushi20 --- pom.xml | 21 ------------------- .../jenkins/plugins/git/maintenance/Cron.java | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/pom.xml b/pom.xml index 82416647f2..303aada8cf 100644 --- a/pom.xml +++ b/pom.xml @@ -102,7 +102,6 @@ org.jenkins-ci.plugins git-client - 3.12.0 org.jenkins-ci.plugins @@ -153,26 +152,6 @@ org.jenkins-ci.plugins junit test - - - - - - - - - - - - - - - - - - - - junit diff --git a/src/main/java/jenkins/plugins/git/maintenance/Cron.java b/src/main/java/jenkins/plugins/git/maintenance/Cron.java index d45e9e4dda..889dc6d340 100644 --- a/src/main/java/jenkins/plugins/git/maintenance/Cron.java +++ b/src/main/java/jenkins/plugins/git/maintenance/Cron.java @@ -13,7 +13,7 @@ public class Cron extends PeriodicWork { @Override public long getInitialDelay(){ - return MIN - (Calendar.getInstance().get(Calendar.SECOND) * 1000); + return MIN - (Calendar.getInstance().get(Calendar.SECOND) * 1000L); } @Override