camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-3692) badly named getter methods for type "Boolean"
Date Tue, 22 Feb 2011 07:59:38 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-3692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-3692:
-------------------------------

    Issue Type: Improvement  (was: New Feature)

> badly named getter methods for type "Boolean"
> ---------------------------------------------
>
>                 Key: CAMEL-3692
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3692
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: james strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.7.0
>
>
> Since changing loads of types from "boolean" -> "Boolean", we left many of the getter
methods using "isFoo" rather than changing them to the Java Beans compliant "getFoo". Breaking
the Java Beans specification for naming properties can cause issues with libraries and tools;
since the property is no longer introspectable or readable in any introspection based tool
(of which there are loads around).
> e.g. go to camel-core/src/main/java/org/apache/camel/model/ then in your IDE search for
"Boolean is". Those isFoo methods returning Boolean should be returned isFoo. 
> For completeness we could also generate an isFoo for backwards compatibility that looks
like...
> public boolean isFoo() { return foo != null && foo.booleanValue(); }

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message