mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 23:31:05 +07:00
Java: allow dollar signs in class name when Navigating to Symbol (IDEA-326383)
GitOrigin-RevId: 566a20418c4d15902ba9233fae32f7823ea9d89a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4a049023f6
commit
a19b0e5b51
@@ -1,6 +1,4 @@
|
||||
/*
|
||||
* Copyright 2000-2017 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-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.java.navigation
|
||||
|
||||
import com.intellij.codeInsight.JavaProjectCodeInsightSettings
|
||||
@@ -95,6 +93,20 @@ class Impl extends Intf {
|
||||
assert impl.findMethodsByName('xxx3', false)[0] in elements
|
||||
assert !(impl.findMethodsByName('xxx1', false)[0] in elements)
|
||||
}
|
||||
|
||||
void "test goto symbol inner class dollar sign"() {
|
||||
def method = myFixture.addClass('''
|
||||
package pkg;
|
||||
class Cls {
|
||||
class Inner {
|
||||
void paint() {}
|
||||
}
|
||||
}
|
||||
''').innerClasses[0].methods
|
||||
assert gotoSymbol('pkg.Cls.Inner.paint') == [method]
|
||||
assert gotoSymbol('pkg.Cls$Inner.paint') == [method]
|
||||
assert gotoSymbol('pkg.Cls$Inner#paint') == [method]
|
||||
}
|
||||
|
||||
void "test goto symbol by Copy Reference result"() {
|
||||
def methods = myFixture.addClass('''
|
||||
|
||||
Reference in New Issue
Block a user