diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2022-01-05 16:17:09 -0600 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-02-02 20:02:54 +0000 |
commit | a53007e8246c8d44b0c9af4bd3757313c48dd230 (patch) | |
tree | c53786ac80233b0296ee345e11d64bb762e5b463 /sonar-plugin-api-impl | |
parent | e6afd7889c39e6b9db5e62ee5f850eae598ba62d (diff) | |
download | sonarqube-a53007e8246c8d44b0c9af4bd3757313c48dd230.tar.gz sonarqube-a53007e8246c8d44b0c9af4bd3757313c48dd230.zip |
SONAR-15966 Use Spring instead of Pico as dependency injection framework in the scanner-engine
Co-authored-by: Zipeng WU <zipeng.wu@sonarsource.com>
Diffstat (limited to 'sonar-plugin-api-impl')
-rw-r--r-- | sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/DefaultTempFolder.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/DefaultTempFolder.java b/sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/DefaultTempFolder.java index dad6280f08e..15cba78e2e1 100644 --- a/sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/DefaultTempFolder.java +++ b/sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/DefaultTempFolder.java @@ -23,6 +23,7 @@ import java.nio.file.FileVisitResult; import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; import org.apache.commons.io.FileUtils; +import org.sonar.api.Startable; import org.sonar.api.utils.TempFolder; import javax.annotation.Nullable; @@ -34,7 +35,7 @@ import java.nio.file.Path; import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; -public class DefaultTempFolder implements TempFolder { +public class DefaultTempFolder implements TempFolder, Startable { private static final Logger LOG = Loggers.get(DefaultTempFolder.class); private final File tempDir; @@ -101,6 +102,12 @@ public class DefaultTempFolder implements TempFolder { } } + @Override + public void start() { + // nothing to do + } + + @Override public void stop() { if (deleteOnExit) { clean(); |