IDEA-142762 Documentation view does not preserve documentation for renamed method parameters

This commit is contained in:
Dmitry Batrak
2015-08-19 15:09:46 +03:00
parent 5c564c25ef
commit 9c1d75b93e
6 changed files with 183 additions and 128 deletions
@@ -0,0 +1,2 @@
<html><head><base href="placeholder"> <style type="text/css"> #error { background-color: #eeeeee; margin-bottom: 10px; } p { margin: 5px 0; } </style></head><body><small><b><a href="psi_element://Bar"><code>Bar</code></a></b></small><PRE>
void&nbsp;<b>m</b>(int&nbsp;bar)</PRE><DD><DL><DT><b>Overrides:</b><DD><a href="psi_element://Foo#m(int)"><code>m</code></a> in class <a href="psi_element://Foo"><code>Foo</code></a></DD></DL></DD><DD><DL><DT><b>Parameters:</b><DD><code>bar</code> - description</DD></DL></DD></body></html>
@@ -0,0 +1,13 @@
import java.lang.Override;
class Foo {
/**
* @param foo description
*/
void m(int foo) {}
}
class Bar extends Foo {
@Override
void m(int bar) {}
}
@@ -0,0 +1,2 @@
<html><head><base href="placeholder"> <style type="text/css"> #error { background-color: #eeeeee; margin-bottom: 10px; } p { margin: 5px 0; } </style></head><body><small><b><a href="psi_element://Bar"><code>Bar</code></a></b></small><PRE>
&lt;U&gt;&nbsp;void&nbsp;<b>m</b>(U&nbsp;u)</PRE><DD><DL><DT><b>Overrides:</b><DD><a href="psi_element://Foo#m(java.lang.Object)"><code>m</code></a> in class <a href="psi_element://Foo"><code>Foo</code></a></DD></DL></DD><DD><DL><DT><b>Type parameters:</b><DD><code>&lt;U&gt;</code> - description</DD></DL></DD></body></html>
@@ -0,0 +1,13 @@
import java.lang.Override;
class Foo {
/**
* @param <T> description
*/
<T> void m(T t) {}
}
class Bar extends Foo {
@Override
<U> void m(U u) {}
}