diff options
author | Jerome Gaillard <jgaillard@google.com> | 2018-05-21 16:04:41 +0100 |
---|---|---|
committer | Jerome Gaillard <jgaillard@google.com> | 2018-05-21 16:04:41 +0100 |
commit | 98dcea0e0a3c4cd1e7bff195655a735a1b1d5464 (patch) | |
tree | 1b59a47fc28c0d1fcd9dbd36dea9ab74f53975d8 | |
parent | 39e90f69a6e05782a4ad431f9d356eda57160146 (diff) | |
download | layoutlib-98dcea0e0a3c4cd1e7bff195655a735a1b1d5464.tar.gz |
UnresolvedResourceValue should not have null type
As the ResourceValue constructor is annotated @NonNull for the type
argument.
Bug: N/A
Test: existing tests pass
Change-Id: I169ef4575a427ae833d57942d8d45933be459ffd
-rw-r--r-- | bridge/src/com/android/layoutlib/bridge/android/UnresolvedResourceValue.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bridge/src/com/android/layoutlib/bridge/android/UnresolvedResourceValue.java b/bridge/src/com/android/layoutlib/bridge/android/UnresolvedResourceValue.java index fffd6faae4..10d2cdb04a 100644 --- a/bridge/src/com/android/layoutlib/bridge/android/UnresolvedResourceValue.java +++ b/bridge/src/com/android/layoutlib/bridge/android/UnresolvedResourceValue.java @@ -18,11 +18,12 @@ package com.android.layoutlib.bridge.android; import com.android.ide.common.rendering.api.ResourceNamespace; import com.android.ide.common.rendering.api.ResourceValue; +import com.android.resources.ResourceType; import android.annotation.NonNull; /** - * Special subclass that layoutlib uses to start the resolution process and recognizes if the + * Special subclass that layoutlib uses to start the resolution process and recognize if the * resolution failed. */ public class UnresolvedResourceValue extends ResourceValue { @@ -30,7 +31,7 @@ public class UnresolvedResourceValue extends ResourceValue { @NonNull String value, @NonNull ResourceNamespace namespace, @NonNull ResourceNamespace.Resolver namespaceResolver) { - super(namespace, null, "layoutlib", value); + super(namespace, ResourceType.STRING, "layoutlib", value); setNamespaceResolver(namespaceResolver); } } |