diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2019-05-20 12:17:54 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-05-23 20:21:09 +0200 |
commit | 49451f5a6eb77a234072584192eaa576c78e3390 (patch) | |
tree | 1004708f085dcb2394951b12123451e90df80e11 /sonar-plugin-api | |
parent | 84c34d5279752a7ec892db767e9aa092aadefc9f (diff) | |
download | sonarqube-49451f5a6eb77a234072584192eaa576c78e3390.tar.gz sonarqube-49451f5a6eb77a234072584192eaa576c78e3390.zip |
SONAR-10034 drop support of reflection-based Pico Container lifecycle management
one must now implement org.picocontainer.Startable, org.sonar.api.Startable, java.io.Closeable and/or java.lang.Closeable
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/TempFolderCleaner.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/TempFolderCleaner.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/TempFolderCleaner.java index eed8a5fed65..3a7836cff4f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/TempFolderCleaner.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/TempFolderCleaner.java @@ -19,11 +19,12 @@ */ package org.sonar.api.utils.internal; +import org.sonar.api.Startable; import org.sonar.api.server.ServerSide; import org.sonar.api.utils.TempFolder; @ServerSide -public class TempFolderCleaner { +public class TempFolderCleaner implements Startable { private TempFolder defaultTempFolder; @@ -35,6 +36,7 @@ public class TempFolderCleaner { * This method should not be renamed. It follows the naming convention * defined by IoC container. */ + @Override public void start() { // Nothing to do } @@ -43,6 +45,7 @@ public class TempFolderCleaner { * This method should not be renamed. It follows the naming convention * defined by IoC container. */ + @Override public void stop() { ((DefaultTempFolder) defaultTempFolder).clean(); } |