Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3692

badly named getter methods for type "Boolean"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • None
    • None

    Description

      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(); }

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: