FixedDateTimeZone is thread-safe and immutable. @author Brian S O'Neill @since 1.0
389390391392393394395396397
zone = ref.get(); if (zone != null) { return zone; } } zone = new FixedDateTimeZone(id, null, offset, offset); iFixedOffsetCache.put(id, new SoftReference<DateTimeZone>(zone)); return zone; }
334335336337338339340341342
zone = (DateTimeZone) ref.get(); if (zone != null) { return zone; } } zone = new FixedDateTimeZone(id, null, offset, offset); iFixedOffsetCache.put(id, new SoftReference(zone)); return zone; }
332333334335336337338339
private static DateTimeZone timeZoneWithOffset(String zoneName, int offset) { if (zoneName.isEmpty()) { return DateTimeZone.forOffsetMillis(offset); } else { return new FixedDateTimeZone(zoneName, null, offset, offset); } }
344345346347348349350351352
358359360361362363364365366
335336337338339340341342343
386387388389390391392393394