aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-17 09:32:20 +0100
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-17 09:32:20 +0100
commit7f32a128f3997c0fe8fa32b3462129faace2c154 (patch)
tree6ef061de065b3503139b0b399923b007d0dae04b /sonar-plugin-api
parent4a97e3539c69b00802f88a30e10a4cbc0d8336d7 (diff)
parent6b51007577170c81989e0084a82ad8c88d0b4d6b (diff)
downloadsonarqube-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.java9
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
*/