You're right, that could be an issue. 
When coding Java source, you can add comments to disable certain Lint 
checks. I know those work in Kotlin as well, but the set of available 
'comments' may be limited compared to their Java counterpart.


On Tuesday, May 17, 2016 at 10:46:37 AM UTC-4, Mike Hurley wrote:
>
> I just looked in Android Studio 2.1.1 and I didn't see an option to 
> "comment out" the unused method warning for that method. My only choice was 
> to clean delete the method. Is there a manual syntax/annotation I can try? 
> I wonder if the Kotlin plugin is simply less advanced in this area.
>
> On Mon, May 16, 2016 at 1:51 PM, Streets Of Boston <flying...@gmail.com 
> <javascript:>> wrote:
>
>> What about just disabling the Lint processing for this 'unused' issue?
>>
>> Click on the yellow warning and fix it by adding a lint-disabling comment 
>> to the method. This will remove the warning.
>>
>> On Saturday, May 14, 2016 at 10:47:33 AM UTC-4, Mike Hurley wrote:
>>>
>>> Here are the versions I'm using:
>>> Android Studio 2.1.1
>>> Kotlin 1.0.2
>>> Android databinding 1.1
>>>
>>> I currently have an annoyance in Android Studio with Kotlin and 
>>> databinding. A method bound to a button's onClick event is showing up in 
>>> the gutter as a yellow warning saying the method isn't used. Is this a 
>>> general databinding problem for all languages or is this an issue with the 
>>> Kotlin plugin? Are there any JVM or Kotlin annotations I can use to mark 
>>> the method as "used"? Any other ideas?
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Android Developers" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/android-developers/mWI0KC7i5mQ/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> android-developers+unsubscr...@googlegroups.com <javascript:>.
>> To post to this group, send email to android-d...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/f1604e76-1fdf-4932-bbaa-91bc9d707727%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-developers/f1604e76-1fdf-4932-bbaa-91bc9d707727%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e4d6a89b-b251-492b-8af4-e009d5c6bfd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to