Skip to content

Commit

Permalink
Merge pull request apache#7573 from mbien/fix-instanceof-pattern-hint…
Browse files Browse the repository at this point in the history
…-msgs

Fix use-instanceof-pattern hint messages
  • Loading branch information
mbien committed Jul 13, 2024
2 parents 7b1176a + 64b2ceb commit 503dd1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import com.sun.source.tree.InstanceOfTree;
import com.sun.source.tree.ParenthesizedTree;
import com.sun.source.tree.StatementTree;
import com.sun.source.tree.Tree;
import com.sun.source.tree.Tree.Kind;
import com.sun.source.tree.TypeCastTree;
import com.sun.source.tree.VariableTree;
Expand Down Expand Up @@ -59,10 +58,10 @@
* @author sdedic
*/
@NbBundle.Messages({
"DN_ConvertToPatternInstanceOf=Convert to instanceof <pattern>",
"DESC_ConvertToPatternInstanceOf=Convert to instanceof <pattern>",
"ERR_ConvertToPatternInstanceOf=instanceof <pattern> can be used here",
"FIX_ConvertToPatternInstanceOf=Use instanceof <pattern>"
"DN_ConvertToPatternInstanceOf=Convert to instanceof pattern",
"DESC_ConvertToPatternInstanceOf=Convert to instanceof pattern",
"ERR_ConvertToPatternInstanceOf=instanceof pattern can be used here",
"FIX_ConvertToPatternInstanceOf=Use instanceof pattern"
})
@Hint(displayName="#DN_ConvertToPatternInstanceOf", description="#DESC_ConvertToPatternInstanceOf", category="rules15",
minSourceVersion = "14")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import org.netbeans.junit.NbTestCase;
import org.netbeans.modules.java.hints.test.api.HintTest;
import javax.lang.model.SourceVersion;

/**
*
Expand Down

0 comments on commit 503dd1f

Please sign in to comment.