diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-03-17 09:32:20 +0100 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-03-17 09:32:20 +0100 |
commit | 7f32a128f3997c0fe8fa32b3462129faace2c154 (patch) | |
tree | 6ef061de065b3503139b0b399923b007d0dae04b /sonar-plugin-api | |
parent | 4a97e3539c69b00802f88a30e10a4cbc0d8336d7 (diff) | |
parent | 6b51007577170c81989e0084a82ad8c88d0b4d6b (diff) | |
download | sonarqube-7f32a128f3997c0fe8fa32b3462129faace2c154.tar.gz sonarqube-7f32a128f3997c0fe8fa32b3462129faace2c154.zip |
Manual merge from branch-5.1
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java index 964df41ed0d..27c5cc3e206 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java @@ -28,6 +28,7 @@ import javax.annotation.CheckForNull; import java.util.Date; import java.util.Map; import java.util.Properties; +import java.util.TimeZone; /** * Proxy over {@link java.lang.System}. It aims to improve testability of classes @@ -127,6 +128,14 @@ public class System2 implements BatchComponent, ServerComponent { } /** + * @since 5.1 + * @return the JVM's default time zone + */ + public TimeZone getDefaultTimeZone() { + return TimeZone.getDefault(); + } + + /** * Closes the object and throws an {@link java.lang.IllegalStateException} on error. * @since 5.1 */ |