From 24e473f47ba2aa924e3f6a495bacee648a1c2a66 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Mon, 16 Nov 2015 18:45:52 +0300 Subject: [PATCH] Minor: put type parameters before function name --- .../kotlin/storage/StorageManager.kt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/core/util.runtime/src/org/jetbrains/kotlin/storage/StorageManager.kt b/core/util.runtime/src/org/jetbrains/kotlin/storage/StorageManager.kt index 9fed2534551..2f17c80bc95 100644 --- a/core/util.runtime/src/org/jetbrains/kotlin/storage/StorageManager.kt +++ b/core/util.runtime/src/org/jetbrains/kotlin/storage/StorageManager.kt @@ -27,17 +27,17 @@ public interface StorageManager { * NOTE: if compute() has side-effects the WEAK reference kind is dangerous: the side-effects will be repeated if * the value gets collected and then re-computed */ - public fun createMemoizedFunction(compute: (K) -> V): MemoizedFunctionToNotNull + public fun createMemoizedFunction(compute: (K) -> V): MemoizedFunctionToNotNull - public fun createMemoizedFunctionWithNullableValues(compute: (K) -> V?): MemoizedFunctionToNullable + public fun createMemoizedFunctionWithNullableValues(compute: (K) -> V?): MemoizedFunctionToNullable - public fun createMemoizedFunction(compute: (K) -> V, map: ConcurrentMap): MemoizedFunctionToNotNull + public fun createMemoizedFunction(compute: (K) -> V, map: ConcurrentMap): MemoizedFunctionToNotNull - public fun createMemoizedFunctionWithNullableValues(compute: (K) -> V, map: ConcurrentMap): MemoizedFunctionToNullable + public fun createMemoizedFunctionWithNullableValues(compute: (K) -> V, map: ConcurrentMap): MemoizedFunctionToNullable - public fun createLazyValue(computable: () -> T): NotNullLazyValue + public fun createLazyValue(computable: () -> T): NotNullLazyValue - public fun createRecursionTolerantLazyValue(computable: () -> T, onRecursiveCall: T): NotNullLazyValue + public fun createRecursionTolerantLazyValue(computable: () -> T, onRecursiveCall: T): NotNullLazyValue /** * @param onRecursiveCall is called if the computation calls itself recursively. @@ -46,17 +46,17 @@ public interface StorageManager { * otherwise it's executed and its result is returned * @param postCompute is called after the value is computed, but before any other thread sees it */ - public fun createLazyValueWithPostCompute(computable: () -> T, onRecursiveCall: ((Boolean) -> T)?, postCompute: (T) -> Unit): NotNullLazyValue + public fun createLazyValueWithPostCompute(computable: () -> T, onRecursiveCall: ((Boolean) -> T)?, postCompute: (T) -> Unit): NotNullLazyValue - public fun createNullableLazyValue(computable: () -> T?): NullableLazyValue + public fun createNullableLazyValue(computable: () -> T?): NullableLazyValue - public fun createRecursionTolerantNullableLazyValue(computable: () -> T?, onRecursiveCall: T?): NullableLazyValue + public fun createRecursionTolerantNullableLazyValue(computable: () -> T?, onRecursiveCall: T?): NullableLazyValue /** * {@code postCompute} is called after the value is computed, but before any other thread sees it (the current thread may * see it in between) */ - public fun createNullableLazyValueWithPostCompute(computable: () -> T?, postCompute: (T?) -> Unit): NullableLazyValue + public fun createNullableLazyValueWithPostCompute(computable: () -> T?, postCompute: (T?) -> Unit): NullableLazyValue - public fun compute(computable: () -> T): T + public fun compute(computable: () -> T): T }