[
https://issues.apache.org/jira/browse/DMAP-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14070382#comment-14070382
]
Reza Naghibi commented on DMAP-51:
----------------------------------
Yes, thats a perfect fit. Will definitely make that change immediately.
Longer term, I was thinking about making another method (or possibly removing
the plain Map classify() method) which returns a Device object which then has
methods to simplify the attributes, and provide a bridge to W3C. Ex:
Device d = client.classifyDevice(uaStr);
if(d.isMobile() || d.isTablet()) {
}
The methods will provide easier access to the attributes either by providing
logic over the attributes or just returning individual attributes.
> classify() returns a mutable map
> --------------------------------
>
> Key: DMAP-51
> URL: https://issues.apache.org/jira/browse/DMAP-51
> Project: DeviceMap
> Issue Type: Bug
> Components: Java API
> Reporter: Reza Naghibi
> Assignee: Reza Naghibi
>
> classify() returns a mutable map. Change it to a more secure Device object
> with proper accessor methods. See DMAP-50.
--
This message was sent by Atlassian JIRA
(v6.2#6252)