Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
9e06553b
Commit
9e06553b
authored
6 years ago
by
Artemiy Sartakov
Committed by
Artemiy Sartakov
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
IDEA-202665 added tests for super method resolve order
parent
c4eda30c
Branches unavailable
Tags unavailable
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
java/java-tests/testData/codeInsight/javadocIG/superJavadocErasureResolve.html
+1
-0
...ata/codeInsight/javadocIG/superJavadocErasureResolve.html
java/java-tests/testData/codeInsight/javadocIG/superJavadocErasureResolve.java
+22
-0
...ata/codeInsight/javadocIG/superJavadocErasureResolve.java
java/java-tests/testData/codeInsight/javadocIG/superJavadocExactResolve.html
+1
-0
...tData/codeInsight/javadocIG/superJavadocExactResolve.html
java/java-tests/testData/codeInsight/javadocIG/superJavadocExactResolve.java
+20
-0
...tData/codeInsight/javadocIG/superJavadocExactResolve.java
java/java-tests/testSrc/com/intellij/java/codeInsight/javadoc/JavaDocInfoGeneratorTest.java
+8
-0
...ij/java/codeInsight/javadoc/JavaDocInfoGeneratorTest.java
with
52 additions
and
0 deletions
+52
-0
java/java-tests/testData/codeInsight/javadocIG/superJavadocErasureResolve.html
0 → 100644
+
1
-
0
View file @
9e06553b
<html><head><base
href=
"placeholder"
></head><body><div
class=
'definition'
><pre><a
href=
"psi_element://Test"
><code>
Test
<
E extends
<a
href=
"psi_element://java.lang.Number"
><code>
Number
</code></a>
>
</code></a><br>
E
<b>
remove
</b>
(
<a
href=
"psi_element://java.lang.Integer"
><code>
Integer
</code></a>
idx)
</pre></div><table
class=
'sections'
><p><tr><td
valign=
'top'
class=
'section'
><p>
See Also:
</td><td
valign=
'top'
><p><a
href=
"psi_element://TestImpl#remove(java.lang.Number)"
><code>
TestImpl.remove(Number)
</code></a></td></table>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
java/java-tests/testData/codeInsight/javadocIG/superJavadocErasureResolve.java
0 → 100644
+
22
-
0
View file @
9e06553b
public
interface
Test
<
E
extends
Number
>
{
boolean
remove
(
E
e
);
/**
* @see TestImpl#remove(Number)
*/
E
remove
<
caret
>(
Integer
idx
);
}
public
class
TestImpl
<
E
extends
Number
>
implements
Test
<
E
>
{
@Override
public
boolean
remove
(
E
e
)
{
return
false
;
}
@Override
public
E
remove
(
Integer
idx
)
{
return
null
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
java/java-tests/testData/codeInsight/javadocIG/superJavadocExactResolve.html
0 → 100644
+
1
-
0
View file @
9e06553b
<html><head><base
href=
"placeholder"
></head><body><div
class=
'definition'
><pre><a
href=
"psi_element://Test"
><code>
Test
<
E
>
</code></a><br>
E
<b>
remove
</b>
(int
idx)
</pre></div><table
class=
'sections'
><p><tr><td
valign=
'top'
class=
'section'
><p>
See Also:
</td><td
valign=
'top'
><p><a
href=
"psi_element://TestImpl#remove(int)"
><code>
TestImpl.remove(int)
</code></a></td></table>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
java/java-tests/testData/codeInsight/javadocIG/superJavadocExactResolve.java
0 → 100644
+
20
-
0
View file @
9e06553b
public
interface
Test
<
E
>
{
boolean
remove
(
Object
o
);
/** @see TestImpl#remove(int) */
E
remove
<
caret
>(
int
idx
);
}
public
class
TestImpl
<
E
>
implements
Test
<
E
>
{
@Override
public
boolean
remove
(
Object
o
)
{
return
false
;
}
@Override
public
E
remove
(
int
idx
)
{
return
null
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
java/java-tests/testSrc/com/intellij/java/codeInsight/javadoc/JavaDocInfoGeneratorTest.java
+
8
-
0
View file @
9e06553b
...
...
@@ -466,6 +466,14 @@ public class JavaDocInfoGeneratorTest extends CodeInsightTestCase {
doTestClass
();
}
public
void
testSuperJavadocExactResolve
()
throws
Exception
{
doTestAtCaret
();
}
public
void
testSuperJavadocErasureResolve
()
throws
Exception
{
doTestAtCaret
();
}
@Override
protected
String
getTestDataPath
()
{
return
JavaTestUtil
.
getJavaTestDataPath
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help