@Test(expected = ELException.class) public void shouldNotConvertToURI() throws Exception { TypeConverter converter = new TypeConverterImpl(); converter.convert(converter, URI.class); }
@Override @SuppressWarnings("unchecked") public <T> T convert(Object value, Class<T> type) throws ELException { if (type == URI.class && value instanceof String) { return (T) URI.create((String) value); } return super.convert(value, type); }
TypeConverterImpl extends de.odysseus.el.misc.TypeConverterImpl { @Override @SuppressWarnings("unchecked") public <T> T convert(Object value, Class<T> type) throws ELException { if (type == URI.class && value instanceof String) { return (T) URI.create((String) value); } return super.convert(value, type); } }
TypeConverterImpl extends de.odysseus.el.misc.TypeConverterImpl { @Override @SuppressWarnings("unchecked") public <T> T convert(Object value, Class<T> type) throws ELException { if (type == URI.class && value instanceof String) { return (T) URI.create((String) value); } return super.convert(value, type); }  }
TypeConverterImpl extends de.odysseus.el.misc.TypeConverterImpl { @Override @SuppressWarnings("unchecked") public <T> T convert(Object value, Class<T> type) throws ELException { if (type == URI.class && value instanceof String) { return (T) URI.create((String) value); } return super.convert(value, type); }  @Override @SuppressWarnings("unchecked") T convert(Object value, Class<T> type); }
TypeConverterImpl extends de.odysseus.el.misc.TypeConverterImpl { @Override @SuppressWarnings("unchecked") public <T> T convert(Object value, Class<T> type) throws ELException { if (type == URI.class && value instanceof String) { return (T) URI.create((String) value); } return super.convert(value, type); }  @Override @SuppressWarnings("unchecked") T convert(Object value, Class<T> type);  }