Project

Profile

Help

Bug #3982

Updated by Michael Kay over 5 years ago

With newer version of the Saxon HE library definition of the class *net.sf.saxon.om.Item* changed from 

 9.8.0-14 
 ~~~ java 
 public interface Item extends Sequence 
 ~~~ 

 9.9.0-1 
 to 

 
 ~~~ java 
 public interface Item<T extends Item> extends GroundedValue<T> 

 
 ~~~ 

 Currently, `net.sf.saxon.sxpath.XpathExpression.evaluate()` *net.sf.saxon.sxpath.XpathExpression.evaluate()* method returns `List<Item>`, *List<Item>*,  
 The problem is *Item* is a raw type, it should be parameterized. 

 Why raw types should be avoided, can be found here: 
 https://stackoverflow.com/questions/2770321/what-is-a-raw-type-and-why-shouldnt-we-use-it 
 http://www.javapractices.com/topic/TopicAction.do?Id=224 

 ~~~ 
 Our CI fails with violations corresponding to this issue, could you please update `XPathExpression.evaluate` *XPathExpression.evaluate* method signature to avoid using raw types. 
 ~~~ 

 Thank you

Back