private static synchronized DateTimeZone fixedOffsetZone(String id,int offset){
  if (offset == 0) {
    return DateTimeZone.UTC;
  }
  if (iFixedOffsetCache == null) {
    iFixedOffsetCache=new HashMap<String,SoftReference<DateTimeZone>>();
  }
  DateTimeZone zone;
  Reference<DateTimeZone> ref=iFixedOffsetCache.get(id);
  if (ref != null) {
    zone=ref.get();
    if (zone != null) {
      return zone;
    }
  }
  zone=new FixedDateTimeZone(id,null,offset,offset);
  iFixedOffsetCache.put(id,new SoftReference<DateTimeZone>(zone));
  return zone;
}

private static synchronized DateTimeZone fixedOffsetZone ( String id , int offset ) { if ( offset == 0 ) { return DateTimeZone . UTC ; } if ( iFixedOffsetCache == null ) { iFixedOffsetCache = new HashMap < String , SoftReference < DateTimeZone > > ( ) ; } DateTimeZone zone ; Reference < DateTimeZone > ref = iFixedOffsetCache . get ( id ) ; if ( ref != null ) { zone = ref . get ( ) ; if ( zone != null ) { return zone ; } } zone = new FixedDateTimeZone ( id , null , offset , offset ) ; iFixedOffsetCache . put ( id , new SoftReference < DateTimeZone > ( zone ) ) ; return zone ; }
gets the zone using a fixed offset amount .
