@Test(expected = IllegalDataException.class) public void testGetInstanceStringUnknown() { JodaTimezoneCache.getInstance("SOME_UNKNOWN_TIMEZONE"); }
public static DateTimeZone getInstance(ByteBuffer timezoneId) { try { return cachedJodaTimeZones.get(timezoneId); } catch (ExecutionException ex) { throw new IllegalDataException(ex); } catch (UncheckedExecutionException e) { throw new IllegalDataException("Unknown timezone " + Bytes.toString(timezoneId.array())); } }
JodaTimezoneCache { public static DateTimeZone getInstance(ByteBuffer timezoneId) { try { return cachedJodaTimeZones.get(timezoneId); } catch (ExecutionException ex) { throw new IllegalDataException(ex); } catch (UncheckedExecutionException e) { throw new IllegalDataException("Unknown timezone " + Bytes.toString(timezoneId.array())); } } }
JodaTimezoneCache { public static DateTimeZone getInstance(ByteBuffer timezoneId) { try { return cachedJodaTimeZones.get(timezoneId); } catch (ExecutionException ex) { throw new IllegalDataException(ex); } catch (UncheckedExecutionException e) { throw new IllegalDataException("Unknown timezone " + Bytes.toString(timezoneId.array())); } }  }
JodaTimezoneCache { public static DateTimeZone getInstance(ByteBuffer timezoneId) { try { return cachedJodaTimeZones.get(timezoneId); } catch (ExecutionException ex) { throw new IllegalDataException(ex); } catch (UncheckedExecutionException e) { throw new IllegalDataException("Unknown timezone " + Bytes.toString(timezoneId.array())); } }  static DateTimeZone getInstance(ByteBuffer timezoneId); static DateTimeZone getInstance(ImmutableBytesWritable timezoneId); static DateTimeZone getInstance(String timezoneId); }
JodaTimezoneCache { public static DateTimeZone getInstance(ByteBuffer timezoneId) { try { return cachedJodaTimeZones.get(timezoneId); } catch (ExecutionException ex) { throw new IllegalDataException(ex); } catch (UncheckedExecutionException e) { throw new IllegalDataException("Unknown timezone " + Bytes.toString(timezoneId.array())); } }  static DateTimeZone getInstance(ByteBuffer timezoneId); static DateTimeZone getInstance(ImmutableBytesWritable timezoneId); static DateTimeZone getInstance(String timezoneId); static final int CACHE_EXPRIRE_TIME_MINUTES; }