You have to see, JSR 308 (Type Annotations) is so far a blunt failure and nobody uses them or tries to bring life back to 305 (where the same EG members were involved that tinkered on 308) Even Oracle's own core Java architects (I asked Brian Goetz at least once or twice about it in recent years) said they have no plan to add default annotations to Java and given the Modularity focus of Java 9 it doesn't seem like any of that comes to Java 9 either. Nor does NetBeans support it, and Java 8 added a totally different concept with Optional to help avoid nullness. Except Guava I am not aware of any common project or framework that uses it, so unless Java adds more support by reviving 305 or a new JSR for this, it's dead and not worth carrying around.
Werner On Wed, Feb 11, 2015 at 1:00 PM, Anatole Tresch <[email protected]> wrote: > maybe that's ok for Google, but not for me. We should really minimize the > deps, and as I said adding deps just of a tool, then the tool is broken > IMO. > And adding a production dependency is quite a harsh thing, it must be well > legitimated IMO, which in our case I do not see it. We can use FindBugs > plugin and the other quality tools (e.g. Sonar), from my experience this is > far enough. Finally most of the checks can be covered by writing tests as > well... > > 2015-02-11 12:47 GMT+01:00 Oliver B. Fischer <[email protected]>: > > > For Google Guava it works quite well... Why not for us? > > > > Am 11.02.15 um 12:15 schrieb Anatole Tresch: > > > >> And as I said you add an additional dependency to your production code, > >> which is not necessary. For me an absolute no-go... > >> > >> > >> 2015-02-11 12:06 GMT+01:00 Werner Keil <[email protected]>: > >> > >> Well as Anatole said it seems just a single place. > >>> Why just there and is there significant value using it in many places? > >>> > >>> I've used the FindBugs plugin a lot without the annotations, it worked > >>> well > >>> there, too. > >>> > >>> > >>> On Wed, Feb 11, 2015 at 11:53 AM, Oliver B. Fischer < > >>> [email protected]> wrote: > >>> > >>> > >> > >> > > -- > > N Oliver B. Fischer > > A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany > > P +49 30 44793251 > > M +49 178 7903538 > > E [email protected] > > S oliver.b.fischer > > J [email protected] > > X http://xing.to/obf > > > > > > > -- > *Anatole Tresch* > Java Engineer & Architect, JSR Spec Lead > Glärnischweg 10 > CH - 8620 Wetzikon > > *Switzerland, Europe Zurich, GMT+1* > *Twitter: @atsticks* > *Blogs: **http://javaremarkables.blogspot.ch/ > <http://javaremarkables.blogspot.ch/>* > > *Google: atsticksMobile +41-76 344 62 79* >
