commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Vivoda (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JXPATH-180) BeanPointer.isLeaf calls JXPathIntrospector.getBeanInfo but already has the BeanInfo
Date Sat, 28 Nov 2015 22:52:10 GMT

    [ https://issues.apache.org/jira/browse/JXPATH-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15030685#comment-15030685
] 

Michele Vivoda commented on JXPATH-180:
---------------------------------------

I did a pull request 

https://github.com/apache/commons-jxpath/pull/11

> BeanPointer.isLeaf calls JXPathIntrospector.getBeanInfo but already has the BeanInfo
> ------------------------------------------------------------------------------------
>
>                 Key: JXPATH-180
>                 URL: https://issues.apache.org/jira/browse/JXPATH-180
>             Project: Commons JXPath
>          Issue Type: Improvement
>            Reporter: Michele Vivoda
>            Priority: Minor
>              Labels: locking, performance
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> BeanPointer.isLeaf() calls JXPathIntrospector.getBeanInfo to get the BeanInfo for the
managed class but already has the BeanInfo as a field, passed in constructor. Constructor
callers (2) obtain it in the same way as done in isLeaf().
> So this code:
> 	return value == null  || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
>  should be 
> 	return value == null   || this.beanInfo.isAtomic()
> https://github.com/apache/commons-jxpath/blob/trunk/src/java/org/apache/commons/jxpath/ri/model/beans/BeanPointer.java#L103



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message