Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2616

Replace this "switch" statement by "if" statements to increase readability.

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2.3.0.Final
    • None
    • None

      Replace the switch statement in VaultObjectInputStream#resolveClass here with an if/else statement to increase readability.

      switch statements are useful when there are many different cases depending on the value of the same expression.

      For just one or two cases however, the code will be more readable with if statements.

              srishtih Srishti Hegde (Inactive)
              dvilkola@redhat.com Diana Krepinska
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: