#Annotations appearing in IntelliJ
1 messages · Page 1 of 1 (latest)
<@&987246527741304832> please have a look, thanks.
what happens if you mouse over it ?
this isnt annotations, its a special ui element called gutter symbols meant to give u a quick overview and similar over ur code
u can configure them in the ide settings and if u do what alathreon says ull see what it tries to tell u
hmmm what do you mean by quick overview and similar over code please
hmm yeah I think when I try to override the toString method, the symbol was in blue at that time
here it is white
It's basically your IDE trying to help out.
they are special symbols placed next to the code, they are not part of the code.
its to give u extra info. for example the name of the method that was overriden. or the location of classes using this method. or the author of the method. or, in this case, the intellij generated method contract
its called gutter symbols and u can configure them in ur ide settings
like to remove or keep them? But here what is my ide try go convey please
in this case it shows u the intellij generated method contract
theres plenty of such gutter symbols telling u various things
just like i said above
ahh I see
like here, the contract is telling us "what data type it is, what to expect etc..." ?
Ok
its telling u that intellij figured out that this is a pure method and that the given list can be assumed to not be null at the moment
based on analysis of ur project
yep I see, I read a bit about gutter vs annotations; in fact annotations is meta data directly provided into the code, like when we override things, we would write @override while for gutter we don't ?
@Override
The @ is a gutter icon here while Override is the meta data; our IDE may provide additional info when we hover on it ?
yes. gutter icons has nothing to do with java or ur source code. its just intellij, ur ide, who thought it would be fancy to show u some neat stuff this way
annotations however are sth u write in ur source code
yep I see, thanks !