Add support for @nullable annotation

Using this annotation will now cause C++ types to be wrapped in
unique_ptr, and by extension be capable of handling null values.

Support extends to all arrays, Strings, Lists, and Parcelables.

Change-Id: I148a3666279c2badcba097b8925e55f8fcecb9c2
Test: Unit tests pass
Bug: 25969194
Signed-off-by: Casey Dahlin <sadmac@google.com>
diff --git a/type_java.cpp b/type_java.cpp
index 5c0bc99..febc9cb 100644
--- a/type_java.cpp
+++ b/type_java.cpp
@@ -123,7 +123,7 @@
                                const string& writeArrayParcel,
                                const string& createArrayParcel,
                                const string& readArrayParcel)
-    : Type(types, name, ValidatableType::KIND_BUILT_IN, true, false),
+    : Type(types, name, ValidatableType::KIND_BUILT_IN, true, true),
       m_writeArrayParcel(writeArrayParcel),
       m_createArrayParcel(createArrayParcel),
       m_readArrayParcel(readArrayParcel) {}