mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
+5
@@ -55,6 +55,11 @@ public class ExprMatchingStrategy extends MatchingStrategyBase {
|
||||
result = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visitPackageStatement(PsiPackageStatement statement) {
|
||||
result = true;
|
||||
}
|
||||
|
||||
// finding parameters
|
||||
@Override public void visitParameterList(final PsiParameterList list) {
|
||||
result = true;
|
||||
|
||||
+8
@@ -2451,6 +2451,14 @@ public class StructuralSearchTest extends StructuralSearchTestCase {
|
||||
"}\n";
|
||||
assertEquals("Find annotated casts", 1, findMatchesCount(source3, "(@'_A 'Cast) '_Expression"));
|
||||
assertEquals("Find annotated new expressions", 1, findMatchesCount(source3, "new @'_A 'Type()"));
|
||||
|
||||
// package-info.java
|
||||
final String source4 = "/**\n" +
|
||||
" * documentation\n" +
|
||||
" */\n" +
|
||||
"@Deprecated\n" +
|
||||
"package one.two;";
|
||||
assertEquals("Find annotation on package statement", 1, findMatchesCount(source4, "@'_Annotation", true));
|
||||
}
|
||||
|
||||
public void testBoxingAndUnboxing() {
|
||||
|
||||
Reference in New Issue
Block a user