From e605a612bc68e3e28a11d999f3013302f45da226 Mon Sep 17 00:00:00 2001 From: catch_pig <327785185@qq.com> Date: Tue, 5 Nov 2019 15:22:22 +0800 Subject: [PATCH] Update PrefsProcessor.kt --- .../src/main/java/com/catchpig/compiler/PrefsProcessor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/main/java/com/catchpig/compiler/PrefsProcessor.kt b/compiler/src/main/java/com/catchpig/compiler/PrefsProcessor.kt index df96317..52f5961 100644 --- a/compiler/src/main/java/com/catchpig/compiler/PrefsProcessor.kt +++ b/compiler/src/main/java/com/catchpig/compiler/PrefsProcessor.kt @@ -130,7 +130,7 @@ class PrefsProcessor : BaseProcessor() { TypeKind.DECLARED -> { if (element.asType().toString() == JAVA_STRING) { getFunSpecBuilder = getFunSpecBuilder - .returns(STRING.copy(nullable = true)) + .returns(STRING) .addStatement("return sharedPrefs.getString(%S,%S)",prefsKey,"") } } @@ -240,4 +240,4 @@ class PrefsProcessor : BaseProcessor() { } } } -} \ No newline at end of file +}