cushon / issues-import

0 stars 0 forks source link

Review: enforce correct targeting on scoping annotations #149

Open cushon opened 9 years ago

cushon commented 9 years ago

Original issue created by sgoldfeder@google.com on 2013-06-21 at 09:57 PM


Link to code review: https://github.com/sgoldfed/error-prone/pull/6

Purpose of code changes: new bugpattern that checks for correct targeting on scoping annotations. Valid targets are TYPE and/or METHOD. The suggested Fix is to add "@Target({TYPE, METHOD})" if @Target is not present. If incorrect targeting is present, it suggests replacing it with "@Target({TYPE, METHOD})". In all cases, it suggests adding all needed imports.

cushon commented 9 years ago

Original comment posted by supertri@google.com on 2013-06-24 at 01:58 PM


(No comment entered for this change.)


Owner: cgruber@google.com

cushon commented 9 years ago

Original comment posted by cgruber@google.com on 2013-06-24 at 09:34 PM


(No comment entered for this change.)


Status: Accepted