Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5950

cleanup warnings related to unreachable exception catches

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 12.6
    • None

    Description

      The java compiler knows explicitly what exceptions are thrown when compiling code.

      This change removes all the warnings related to "

      warning: unreachable catch clause

      "

      For example:

         [repeat] /home/bwalker/src/netbeans/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigDataObject.java:297: warning: unreachable catch clause
         [repeat]         } catch(SAXException ex) {
         [repeat]           ^
         [repeat]   thrown type SAXParseException has already been caught
      

      Attachments

        Issue Links

          Activity

            People

              brad.walker Brad Walker
              brad.walker Brad Walker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m