Closed GoogleCodeExporter closed 9 years ago
Issue 1811 has been merged into this issue.
Original comment by cpov...@google.com
on 21 Jul 2014 at 8:05
Issue 1810 has been merged into this issue.
Original comment by cpov...@google.com
on 21 Jul 2014 at 8:05
Issue 1677 has been merged into this issue.
Original comment by cpov...@google.com
on 21 Jul 2014 at 8:06
Issue 1278 has been merged into this issue.
Original comment by cpov...@google.com
on 21 Jul 2014 at 8:06
Issue 1221 has been merged into this issue.
Original comment by cpov...@google.com
on 21 Jul 2014 at 8:06
Issue 920 has been merged into this issue.
Original comment by cpov...@google.com
on 21 Jul 2014 at 8:06
Issue 1279 has been merged into this issue.
Original comment by cpov...@google.com
on 21 Jul 2014 at 8:06
In our main Java application we drew a line in the sand to minimize null values
in every class. This involved implementing the Null Object pattern in many
cases but mostly being consistent with our annotations.
We started by creating the missing package-level annotations
FieldsAreNonnulByDefault and ReturnValuesAreNonnullByDefault and ensuring they
are applied to every package along with ParametersAreNonnullByDefault. From
there it was easy: apply CheckForNull whenever null is allowed.
The beauty of this approach is that anyone reading the code knows what to
expect in the absence of an annotation. If most elements allow null, create
your own defaults, but I highly recommend using the same default for fields,
parameters, and return values. Mixing defaults across the three will only cause
confusion.
I would be happy to help out in this endeavor because I feel it would help lots
of developers use this awesome library.
Original comment by dharkn...@gmail.com
on 22 Jul 2014 at 1:36
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:08
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
cpov...@google.com
on 21 Jul 2014 at 8:03