mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
introduce parameter object: copy javadoc for constructor from included params only (IDEA-108187)
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
class Test {
|
||||
/**
|
||||
* foo comment
|
||||
* @param param
|
||||
* @param s1 long1 description1
|
||||
*/
|
||||
void foo(Param param, String s1) {
|
||||
bar(param.getS(), s1);
|
||||
}
|
||||
|
||||
void bar(String s, String s1){}
|
||||
|
||||
private static class Param {
|
||||
private final String s;
|
||||
|
||||
/**
|
||||
* @param s long description
|
||||
*/
|
||||
private Param(String s) {
|
||||
this.s = s;
|
||||
}
|
||||
|
||||
public String getS() {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
class Test {
|
||||
/**
|
||||
* foo comment
|
||||
* @param s long description
|
||||
* @param s1 long1 description1
|
||||
*/
|
||||
void foo(String s, String s1) {
|
||||
bar(s, s1);
|
||||
}
|
||||
|
||||
void bar(String s, String s1){}
|
||||
}
|
||||
Reference in New Issue
Block a user