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

Custom hint not getting badge

    XMLWordPrintableJSON

Details

    Description

      Custom hint, options show it as "WARNING", but no badges. Regression from 11.3.

      "Refactor > Inspect&Transform" work with it.

      Given this file

      package play;
      
      import javax.swing.text.Segment;
      
      public class NewClass
      {
          void t(Segment s, int col)
          {
              char c;
              c = s.array[col + s.offset];
      
              c = s.array[s.offset + col];
          }
      }
      

      and in userdir/config/rules

      <!description="seg.array TO seg.charAt">
      
          $seg.array[$val + $seg.offset]
      ::
          $seg instanceof javax.swing.text.Segment
      =>
          $seg.charAt($val)
      ;;
      
          $seg.array[$seg.offset + $val]
      ::
          $seg instanceof javax.swing.text.Segment
      =>
          $seg.charAt($val)
      ;;
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            errael Ernie Rael
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: