From 4df7fd5944ec7655435dadae990b8537877e6f2f Mon Sep 17 00:00:00 2001 From: Julian Psotta Date: Mon, 25 Nov 2024 14:56:07 +0100 Subject: [PATCH] chore(sonar): Remove unnecessary Lombok annotations This removes unneeded Lombok annotations for purely internal access classes. --- .../extensions/manage/remote/HttpRepoManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/manage/remote/HttpRepoManager.java b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/manage/remote/HttpRepoManager.java index 1bc2c8e1ae..721ef921a1 100644 --- a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/manage/remote/HttpRepoManager.java +++ b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/manage/remote/HttpRepoManager.java @@ -1,7 +1,6 @@ package org.heigit.ors.routing.graphhopper.extensions.manage.remote; import lombok.NoArgsConstructor; -import lombok.Setter; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.StringUtils; import org.apache.log4j.Logger; @@ -21,13 +20,10 @@ import static com.google.common.base.Strings.isNullOrEmpty; -@Setter @NoArgsConstructor public class HttpRepoManager extends AbstractRepoManager implements ORSGraphRepoManager { private static final Logger LOGGER = Logger.getLogger(HttpRepoManager.class.getName()); - private int connectionTimeoutMillis = 2000; - private int readTimeoutMillis = 200000; private GraphManagementRuntimeProperties managementProps; private ORSGraphFileManager orsGraphFileManager; private ORSGraphRepoStrategy orsGraphRepoStrategy; @@ -161,6 +157,8 @@ public void downloadFile(URL downloadUrl, File outputFile) { LOGGER.info("[%s] Downloading %s...".formatted(getProfileDescriptiveName(), downloadUrl)); } try { + int connectionTimeoutMillis = 2000; + int readTimeoutMillis = 200000; FileUtils.copyURLToFile( downloadUrl, tempDownloadFile,