From 23a74bbbe73d6d43ba3512c2e8c367d55c4ffbeb Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Fri, 16 Apr 2010 17:06:04 -0700 Subject: [PATCH] removed jcip dep --- core/pom.xml | 5 ----- .../date/internal/SimpleDateFormatDateService.java | 12 ++++-------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index a8e1ffdf17..ada8f26405 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -73,11 +73,6 @@ jsr250-api 1.0 - - net.jcip - jcip-annotations - 1.0 - org.mortbay.jetty jetty diff --git a/core/src/main/java/org/jclouds/date/internal/SimpleDateFormatDateService.java b/core/src/main/java/org/jclouds/date/internal/SimpleDateFormatDateService.java index 738e41643b..d73e68c9a9 100755 --- a/core/src/main/java/org/jclouds/date/internal/SimpleDateFormatDateService.java +++ b/core/src/main/java/org/jclouds/date/internal/SimpleDateFormatDateService.java @@ -25,9 +25,6 @@ import java.util.Locale; import java.util.SimpleTimeZone; import java.util.regex.Pattern; -import net.jcip.annotations.GuardedBy; -import net.jcip.annotations.ThreadSafe; - import org.jclouds.date.DateService; /** @@ -37,25 +34,24 @@ import org.jclouds.date.DateService; * @author Adrian Cole * @author James Murty */ -@ThreadSafe public class SimpleDateFormatDateService implements DateService { /* * Use default Java Date/SimpleDateFormat classes for date manipulation, but be *very* careful to * guard against the lack of thread safety. */ - @GuardedBy("this") + //@GuardedBy("this") private static final SimpleDateFormat iso8601SecondsSimpleDateFormat = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US); - @GuardedBy("this") + //@GuardedBy("this") private static final SimpleDateFormat iso8601SimpleDateFormat = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US); - @GuardedBy("this") + //@GuardedBy("this") private static final SimpleDateFormat rfc822SimpleDateFormat = new SimpleDateFormat( "EEE, dd MMM yyyy HH:mm:ss z", Locale.US); - @GuardedBy("this") + //@GuardedBy("this") private static final SimpleDateFormat cSimpleDateFormat = new SimpleDateFormat( "EEE MMM dd HH:mm:ss '+0000' yyyy", Locale.US);