< prev index next >

src/java.desktop/share/classes/com/sun/beans/finder/InstanceFinder.java

Print this page

        

*** 91,101 **** try { if (name != null) { type = ClassFinder.findClass(name, type.getClassLoader()); } if (this.type.isAssignableFrom(type)) { ! @SuppressWarnings("unchecked") T tmp = (T) type.newInstance(); return tmp; } } catch (Exception exception) { --- 91,101 ---- try { if (name != null) { type = ClassFinder.findClass(name, type.getClassLoader()); } if (this.type.isAssignableFrom(type)) { ! @SuppressWarnings({"unchecked", "deprecation"}) T tmp = (T) type.newInstance(); return tmp; } } catch (Exception exception) {
< prev index next >