Skip to content
  • Michael Bien's avatar
    org.netbeans.modules.java.hints.bugs.Unused doesn't cancel properly · 74861d06
    Michael Bien authored
     - streams are not very good at canceling
     - by using a plain loop we can simply break out of it
     - further: convertUnused is the slow part, not findUnused, and it isn't
       cancelable
    
    issue:
    
     - a synthetic file with 10k fields pins a thread for about 20s
       at 100%
     - most editor features don't work during that time, e.g completion
    74861d06