Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1844

API cleanup: make any unchecked casts explicit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M1
    • None
    • None

    Description

      replace occurrences of
       

      public <T> T myMethod() {
          ...
          return (T) myObject;
      }
      

      ... with ...

      public <T> T myMethod() {
          ...
          return Casts.uncheckedCast(myObject);
      }
      

      ... such that we have a programmatic entry point for any unchecked casts.
       

      Attachments

        Activity

          People

            hobrom Andi Huber
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: