Java @SupressWarning() problem
Answered
Hey, for some reason the @SupressWarnings() annotation keep giving me this (https://i.imgur.com/9aeRe3b.png) error and sometimes it stop me from building the project. I want to mention that it worked just fine before. I have even tried to 'File | Invalidate Caches / Restart' but with no luck
IntelliJ IDEA 2019.3.1 (Ultimate Edition) Build #IU-193.5662.53, built on December 18, 2019 Licensed to *** *** Subscription is active until December 12, 2020 For educational use only. Runtime version: 11.0.5+10-b520.17 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 GC: ParNew, ConcurrentMarkSweep Memory: 980M Cores: 4 Registry: ide.balloon.shadow.size=0 Non-Bundled Plugins: SnakeYAML plugin, Statistic, YAML/Ansible support, com.almightyalpaca.intellij.plugins.discord, org.jetbrains.kotlin, com.chrisrm.idea.MaterialThemeUI, com.demonwav.minecraft-dev, com.floobits.unique.plugin.id, com.wakatime.intellij.plugin, izhangzhihao.rainbow.brackets
Please sign in to leave a comment.
Hi GabyTM,
Does it occur project-wide or only a single instance of the annotation is affected?
If you hit `Alt+Enter` while the caret is on the word that gives you the error, does it give you the option to 'Uninject language or reference'? If so, try to select it in order to get rid of the language possibly injected into that string literal.
If the issue persists, please provide a code sample or demo project so that we can reproduce it on our end.