From c77d0b9cce39102aa50cf409ef37050d01e9c3fe Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Mon, 5 Oct 2015 23:33:40 +0300 Subject: [PATCH] No protected inside object: performance counter fixed --- .../src/org/jetbrains/kotlin/util/PerformanceCounter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/util/PerformanceCounter.kt b/compiler/frontend/src/org/jetbrains/kotlin/util/PerformanceCounter.kt index b53a9b27993..0f1c81f96a0 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/util/PerformanceCounter.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/util/PerformanceCounter.kt @@ -63,7 +63,7 @@ public abstract class PerformanceCounter protected constructor(val name: String) public fun create(name: String, vararg excluded: PerformanceCounter): PerformanceCounter = CounterWithExclude(name, *excluded) - protected inline fun getOrPut(threadLocal: ThreadLocal, default: () -> T) : T { + internal inline fun getOrPut(threadLocal: ThreadLocal, default: () -> T) : T { var value = threadLocal.get() if (value == null) { value = default()