From 9ae603bafca60c225bea013ecb8fed47ec118f18 Mon Sep 17 00:00:00 2001 From: Bart van Helvert Date: Mon, 3 Mar 2025 15:09:58 +0100 Subject: [PATCH] [uast] Fix simple style warnings GitOrigin-RevId: 40093e44584def10c83dc3e8f88e79d102b30f23 --- .../src/org/jetbrains/uast/UAnnotationUtils.kt | 4 ++-- .../org/jetbrains/uast/UastLanguagePlugin.kt | 4 +--- .../src/org/jetbrains/uast/UastLazyParts.kt | 4 ++-- .../src/org/jetbrains/uast/qualifiedUtils.kt | 18 ++---------------- 4 files changed, 7 insertions(+), 23 deletions(-) diff --git a/uast/uast-common/src/org/jetbrains/uast/UAnnotationUtils.kt b/uast/uast-common/src/org/jetbrains/uast/UAnnotationUtils.kt index 3da28a34ea77..8fecd722cb89 100644 --- a/uast/uast-common/src/org/jetbrains/uast/UAnnotationUtils.kt +++ b/uast/uast-common/src/org/jetbrains/uast/UAnnotationUtils.kt @@ -1,4 +1,4 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. @file:JvmName("UAnnotationUtils") package org.jetbrains.uast @@ -106,4 +106,4 @@ fun getContainingAnnotationEntry(uElement: UElement?): Pair getOutermostQualified(current.uastParent, current) is UParenthesizedExpression -> getOutermostQualified(current.uastParent, previous) - else -> if (previous is UQualifiedReferenceExpression) previous else null + else -> previous as? UQualifiedReferenceExpression } return getOutermostQualified(this.uastParent, this)