Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1844

API cleanup: make any unchecked casts explicit

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-M1
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: