Bug 492775 - CSSEngine.convert should be genericized
Summary: CSSEngine.convert should be genericized
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-01 06:43 EDT by Alex Blewitt CLA
Modified: 2016-05-01 06:43 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Blewitt CLA 2016-05-01 06:43:58 EDT
The signature in CSSEngine should be genericized in the next release:

	public Object convert(CSSValue value, Object toType, Object context)
			throws Exception;

I think this should be

	public <T> T convert(CSSValue value, Class<T> toType, Object context)
			throws Exception {

or at least this could be added as an alternative method.