Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5468

Remove redundant type casting

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.3.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      IntelliJ reports not needed cast expressions that can be removed to simplify the code a little bit. For example:

      public List<FormField> getFormField = ..
      

      then there is no need to later cast it like:

      return (FormField) formFields.get(0);
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              michal Michal Fotyga
              Reporter:
              michal Michal Fotyga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: