core: Nullability fixes
authorPhilip Withnall <philip@tecnocode.co.uk>
Wed, 21 Dec 2011 23:58:39 +0000 (23:58 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Fri, 6 Jan 2012 18:40:04 +0000 (18:40 +0000)
commitd3385bae363651fe9588826210f79359fa820e01
tree0b694a50816bbf1f606fe06b96290f73e735427a
parent9136e590ecfade421f419233bb6afc70df5b332c
core: Nullability fixes

Almost all of these are just the necessary ‘(!)’ annotations to allow the
nullability check to pass. There were few, if any, actual bugs found by the
check (which either means folks is perfect, or Vala's nullability checking
is imperfect).

This brings us down from 296 nullability errors to just below 50.

The work was done by compiling folks with valac’s
--enable-experimental-non-null flag. We’re not ready to add the flag to
VALAFLAGS permanently yet, since this commit depends on various annotation
fixes in GLib (and similarly, the next one depends on several in EDS).
However, the fixes themselves should be valid without the flag.

This depends on (at least):
 • https://bugzilla.gnome.org/show_bug.cgi?id=666700
 • https://bugzilla.gnome.org/show_bug.cgi?id=666699
18 files changed:
folks/abstract-field-details.vala
folks/avatar-cache.vala
folks/backend-store.vala
folks/debug.vala
folks/email-details.vala
folks/im-details.vala
folks/individual-aggregator.vala
folks/individual.vala
folks/note-details.vala
folks/object-cache.vala
folks/persona-store.vala
folks/persona.vala
folks/phone-details.vala
folks/postal-address-details.vala
folks/potential-match.vala
folks/role-details.vala
folks/url-details.vala
folks/web-service-details.vala