[Parameter Name Hints] added couple more blacklist items

This commit is contained in:
Yaroslav Lepenkin
2016-10-18 17:12:36 +03:00
parent d1395fb382
commit 257d04e1c1
2 changed files with 22 additions and 3 deletions
@@ -63,18 +63,21 @@ class JavaInlayParameterHintsProvider : InlayParameterHintsProvider {
"(message, error)",
"*.set(*,*)",
"*.get(*)",
"*.getProperty(*)",
"*.setProperty(*,*)",
"*.print(*)",
"*.println(*)",
"*.get(*)",
"*.append(*)",
"*.charAt(*)",
"*.indexOf(*)",
"*.contains(*)",
"*.startsWith(*)",
"*.endsWith(*)",
"java.lang.Math.*",
"*.equals(*)",
"*.equal(*)"
"*.equal(*)",
"java.lang.Math.*"
)
}
@@ -670,6 +670,22 @@ class Test {
onLineStartingWith("Math").assertNoInlays()
}
fun `test more blacklisted items`() {
setup("""
class Test {
void test() {
System.getProperty("aaa");
System.setProperty("aaa", "bbb");
}
}
""")
onLineStartingWith("System.get").assertNoInlays()
onLineStartingWith("System.set").assertNoInlays()
}
private fun getInlays(): List<Inlay> {
val editor = myFixture.editor
return editor.inlayModel.getInlineElementsInRange(0, editor.document.textLength)