Skip to content
Permalink
Browse files
Fix compiler generics warnings
  • Loading branch information
garydgregory committed May 15, 2022
1 parent e37418f commit 94711d6c2f6352fa7a0bca1bcdcf884c4189dde6
Showing 1 changed file with 4 additions and 4 deletions.
@@ -69,8 +69,8 @@ public int getOrder() {
*/
public NodePointer createNodePointer(final QName name, final Object bean, final Locale locale) {
if (bean instanceof NodeWrapper) {
final NodeWrapper<?> wrapper = (NodeWrapper<?>) bean;
return new ConfigurationNodePointer(wrapper.getNode(), locale, wrapper.getNodeHandler());
final NodeWrapper<Object> wrapper = (NodeWrapper<Object>) bean;
return new ConfigurationNodePointer<>(wrapper.getNode(), locale, wrapper.getNodeHandler());
}
return null;
}
@@ -92,8 +92,8 @@ public NodePointer createNodePointer(final QName name, final Object bean, final
*/
public NodePointer createNodePointer(final NodePointer parent, final QName name, final Object bean) {
if (bean instanceof NodeWrapper) {
final NodeWrapper<?> wrapper = (NodeWrapper<?>) bean;
return new ConfigurationNodePointer((ConfigurationNodePointer) parent, wrapper.getNode(), wrapper.getNodeHandler());
final NodeWrapper<Object> wrapper = (NodeWrapper<Object>) bean;
return new ConfigurationNodePointer<>((ConfigurationNodePointer<Object>) parent, wrapper.getNode(), wrapper.getNodeHandler());
}
return null;
}

0 comments on commit 94711d6

Please sign in to comment.