From 32c4d287952dd5b6693d4a7be94f5b7f2d5acb49 Mon Sep 17 00:00:00 2001 From: David Lurton Date: Thu, 24 Feb 2022 14:36:59 -0800 Subject: [PATCH] Explicitly specify return types for 3 public functions --- src/com/amazon/ionelement/api/IonElementLoader.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/amazon/ionelement/api/IonElementLoader.kt b/src/com/amazon/ionelement/api/IonElementLoader.kt index 5cb3c07..f6a46bb 100644 --- a/src/com/amazon/ionelement/api/IonElementLoader.kt +++ b/src/com/amazon/ionelement/api/IonElementLoader.kt @@ -90,17 +90,17 @@ data class IonElementLoaderOptions( /** Creates an [IonElementLoader] implementation with the specified [options]. */ @JvmOverloads -fun createIonElementLoader(options: IonElementLoaderOptions = IonElementLoaderOptions()) = +fun createIonElementLoader(options: IonElementLoaderOptions = IonElementLoaderOptions()): IonElementLoader = IonElementLoaderImpl(options) /** Provides syntactically lighter way of invoking [IonElementLoader.loadSingleElement]. */ @JvmOverloads -fun loadSingleElement(ionText: String, options: IonElementLoaderOptions = IonElementLoaderOptions()) = +fun loadSingleElement(ionText: String, options: IonElementLoaderOptions = IonElementLoaderOptions()): AnyElement = createIonElementLoader(options).loadSingleElement(ionText) /** Provides syntactically lighter method of invoking [IonElementLoader.loadSingleElement]. */ @JvmOverloads -fun loadSingleElement(ionReader: IonReader, options: IonElementLoaderOptions = IonElementLoaderOptions()) = +fun loadSingleElement(ionReader: IonReader, options: IonElementLoaderOptions = IonElementLoaderOptions()): AnyElement = createIonElementLoader(options).loadSingleElement(ionReader) /** Provides syntactically lighter method of invoking [IonElementLoader.loadAllElements]. */