diff --git a/compiler/util/src/org/jetbrains/jet/utils/addToStdlib.kt b/compiler/util/src/org/jetbrains/jet/utils/addToStdlib.kt index 9ca54e306ba..cb68678a7e5 100644 --- a/compiler/util/src/org/jetbrains/jet/utils/addToStdlib.kt +++ b/compiler/util/src/org/jetbrains/jet/utils/addToStdlib.kt @@ -35,38 +35,32 @@ public fun T?.singletonOrEmptyList(): List = if (this != null) Colle public fun T?.singletonOrEmptySet(): Set = if (this != null) Collections.singleton(this) else Collections.emptySet() -[suppress("NOTHING_TO_INLINE")] public inline fun Stream<*>.firstIsInstanceOrNull(): T? { for (element in this) if (element is T) return element return null } -[suppress("NOTHING_TO_INLINE")] public inline fun Iterable<*>.firstIsInstanceOrNull(): T? { for (element in this) if (element is T) return element return null } -[suppress("NOTHING_TO_INLINE")] public inline fun Array<*>.firstIsInstanceOrNull(): T? { for (element in this) if (element is T) return element return null } -[suppress("NOTHING_TO_INLINE")] public inline fun Stream<*>.firstIsInstance(): T { for (element in this) if (element is T) return element throw NoSuchElementException("No element of given type found") } -[suppress("NOTHING_TO_INLINE")] public inline fun Iterable<*>.firstIsInstance(): T { for (element in this) if (element is T) return element throw NoSuchElementException("No element of given type found") } -[suppress("NOTHING_TO_INLINE")] public inline fun Array<*>.firstIsInstance(): T { for (element in this) if (element is T) return element throw NoSuchElementException("No element of given type found") -} \ No newline at end of file +} diff --git a/core/descriptors/src/org/jetbrains/jet/lang/resolve/scopes/JetScope.kt b/core/descriptors/src/org/jetbrains/jet/lang/resolve/scopes/JetScope.kt index 7eabc3d14cd..6c7ee7b2701 100644 --- a/core/descriptors/src/org/jetbrains/jet/lang/resolve/scopes/JetScope.kt +++ b/core/descriptors/src/org/jetbrains/jet/lang/resolve/scopes/JetScope.kt @@ -178,7 +178,6 @@ public class DescriptorKindFilter( .filterNotNull() .toReadOnlyList() - [suppress("NOTHING_TO_INLINE")] private inline fun staticFields() = javaClass().getFields().filter { Modifier.isStatic(it.getModifiers()) } } }