From 7adbc3fcafba29e713e638b6f09276cdcefbf595 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Tue, 19 Mar 2024 10:35:35 +0000 Subject: [PATCH] Bumping versions --- .../config/server/environment/JGitEnvironmentRepository.java | 3 ++- .../server/environment/JGitEnvironmentRepositoryTests.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepository.java b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepository.java index c4434ab07c..49d1ae9fdf 100644 --- a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepository.java +++ b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepository.java @@ -470,7 +470,8 @@ private Ref checkout(Git git, String label) throws GitAPIException { protected boolean shouldPull(Git git) throws GitAPIException { boolean shouldPull; - if (this.refreshRate < 0 || (this.refreshRate > 0 && System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000))) { + if (this.refreshRate < 0 || (this.refreshRate > 0 + && System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000))) { return false; } diff --git a/spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepositoryTests.java b/spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepositoryTests.java index 6239189db9..2a3aee03df 100644 --- a/spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepositoryTests.java +++ b/spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepositoryTests.java @@ -542,7 +542,7 @@ public void shouldNotRefreshWhenNegativeValue() throws Exception { properties.setRefreshRate(-1); JGitEnvironmentRepository repo = new JGitEnvironmentRepository(this.environment, properties, - ObservationRegistry.NOOP); + ObservationRegistry.NOOP); boolean shouldPull = repo.shouldPull(git);