diff options
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java index 3985ddafeb9..a36ce0a44ea 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java @@ -130,6 +130,10 @@ public final class DateUtils { return datetime; } + public static Date addDays(Date date, int numberOfDays) { + return org.apache.commons.lang.time.DateUtils.addDays(date, numberOfDays); + } + static class ThreadSafeDateFormat extends DateFormat { private final String format; private final ThreadLocal<Reference<DateFormat>> cache = new ThreadLocal<Reference<DateFormat>>() { |