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

reduce the "warning: [cast] redundant cast to"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      This work is to reduce the amount of warnings that are caused by a redundant cast..

      For example,

      [repeat] /home/bwalker/netbeans/ide/xml.catalog.ui/src/org/netbeans/modules/xml/catalog/CatalogPanel.java:302: warning: [cast] redundant cast to DataObject
       [repeat] DataObject dobj = (DataObject) n.getLookup().lookup(DataObject.class);
       [repeat] ^

       The only work done is to remove the redundant casting..

      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 - 0.5h
                  0.5h