[
https://issues.apache.org/jira/browse/OFBIZ-9780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Brohl resolved OFBIZ-9780.
----------------------------------
Resolution: Not A Problem
Thanks Julian.
I'll close this as this seems to be a pattern which is used in the whole class
and local FindBugs does not warn me in Eclipse.
> [FB] org.apache.ofbiz.product.catalog
> -------------------------------------
>
> Key: OFBIZ-9780
> URL: https://issues.apache.org/jira/browse/OFBIZ-9780
> Project: OFBiz
> Issue Type: Sub-task
> Components: product
> Affects Versions: Trunk
> Reporter: Julian Leichert
> Assignee: Michael Brohl
> Priority: Minor
>
> CatalogWorker.java:103, BC_UNCONFIRMED_CAST
> - BC: Unchecked/unconfirmed cast from javax.servlet.ServletRequest to
> javax.servlet.http.HttpServletRequest in
> org.apache.ofbiz.product.catalog.CatalogWorker.getPartyCatalogs(ServletRequest)
> This cast is unchecked, and not all instances of the type casted from can be
> cast to the type it is being cast to. Check that your program logic ensures
> that this cast will not fail.
> CatalogWorker.java:158, BC_UNCONFIRMED_CAST
> - BC: Unchecked/unconfirmed cast from javax.servlet.ServletRequest to
> javax.servlet.http.HttpServletRequest in
> org.apache.ofbiz.product.catalog.CatalogWorker.getCurrentCatalogId(ServletRequest)
> This cast is unchecked, and not all instances of the type casted from can be
> cast to the type it is being cast to. Check that your program logic ensures
> that this cast will not fail.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)