mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
change signature: refresh type element after normalizeDeclaration for old style arrays
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
void <caret>foo(int a[]) {}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
void foo(int... a) {}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -355,6 +355,10 @@ public class ChangeSignatureTest extends ChangeSignatureBaseTest {
|
||||
}, false);
|
||||
}
|
||||
|
||||
public void testReplaceOldStyleArrayWithVarargs() throws Exception {
|
||||
doTest(null, new ParameterInfoImpl[] {new ParameterInfoImpl(0, "a", new PsiEllipsisType(PsiType.INT))}, false);
|
||||
}
|
||||
|
||||
public void testReorderParamsOfFunctionalInterface() {
|
||||
doTest(null, null, null, method -> new ParameterInfoImpl[]{
|
||||
new ParameterInfoImpl(1, "b", PsiType.INT),
|
||||
|
||||
Reference in New Issue
Block a user