Variables with underline

后端 未结 6 1592
轮回少年
轮回少年 2020-12-28 12:23

I\'m getting an underline in some variables on Android Studio (in this case on the \'position\' variable). I think it\'s not an error because the application runs perfectly

6条回答
  •  心在旅途
    2020-12-28 12:56

    I believe the underlined variables are representative of constants (final or effectively final), because in my experience I only see this decoration when I declare a final object for use inside an anonymous class. I can't seem to find it in the documentation, though.

提交回复
热议问题