#Annotations appearing in IntelliJ

1 messages · Page 1 of 1 (latest)

wintry lance
#

Hello guys, can someone explain why when I wrote this small piece of code in intelliJ, I get the "@" symbol appearing please. I know we refer to those as "annotations" by why do they appear or why do we need them please. I noticed they appear several time, namely when I overwrite the toString() method also

lapis forumBOT
#

<@&987246527741304832> please have a look, thanks.

wheat steeple
storm silo
#

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

wintry lance
#

hmm yeah I think when I try to override the toString method, the symbol was in blue at that time

#

here it is white

echo sable
#

It's basically your IDE trying to help out.

storm silo
#

its called gutter symbols and u can configure them in ur ide settings

wintry lance
# wintry lance

like to remove or keep them? But here what is my ide try go convey please

storm silo
#

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

wintry lance
#

ahh I see

#

like here, the contract is telling us "what data type it is, what to expect etc..." ?

storm silo
#

just have a look at this

wintry lance
#

Ok

storm silo
#

based on analysis of ur project

wintry lance
#

@Override

The @ is a gutter icon here while Override is the meta data; our IDE may provide additional info when we hover on it ?

storm silo
#

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

wintry lance
#

yep I see, thanks !