[java] don't suggest "implements" for type parameter (IDEA-353386)

GitOrigin-RevId: fec190f372d53eb9311a54dc01e511ef432b0ee4
This commit is contained in:
Bas Leijdekkers
2024-05-14 10:30:00 +00:00
committed by intellij-monorepo-bot
parent 106130b6f8
commit bbb76f93cf
2 changed files with 2 additions and 2 deletions
@@ -1066,7 +1066,7 @@ public class JavaKeywordCompletion {
}
}
}
if (!psiClass.isInterface()) {
if (!psiClass.isInterface() && !(psiClass instanceof PsiTypeParameter)) {
addKeyword(new OverridableSpace(createKeyword(PsiKeyword.IMPLEMENTS), TailTypes.humbleSpaceBeforeWordType()));
}
}
@@ -14,5 +14,5 @@
* limitations under the License.
*/
class A{
void <T extends String, V e<caret>>foo(){}
void <T extends String, V <caret>>foo(){}
}