Project

Profile

Help

Bug #3982

closed

Raw type Item used in 'XPathExpression.evaluate' method signature

Added by Тимур Тибеев over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2018-10-28
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9
Fix Committed on Branch:
9.9
Fixed in Maintenance Release:
Platforms:

Description

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

9.8.0-14

public interface Item extends Sequence

9.9.0-1 to

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

Currently, net.sf.saxon.sxpath.XpathExpression.evaluate() method returns 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` method signature to avoid using raw types.

Thank you

Please register to edit this issue

Also available in: Atom PDF