@@ -75,7 +75,7 @@ public Method(Method methodAndClass) {
7575 }
7676
7777 public Method deriveWithNewClass (String className ) {
78- Method m = new Method (this .getName (), this .getParameters (), this .getReturnType (), className );
78+ Method m = new Method (className + "." + this .getName (), this .getParameters (), this .getReturnType ());
7979 m .setFramework (this .framework );
8080 m .setLink (this .link );
8181 m .setComment (this .comment );
@@ -189,8 +189,8 @@ public String getName() {
189189 @ JsonIgnore
190190 public String getClassName () {
191191
192- if (name .contains ("." ))
193- return name .substring (0 , name .lastIndexOf ("." ));
192+ if (name .contains ("." ))
193+ return name .substring (0 , name .lastIndexOf ("." ));
194194 else
195195 return name ;
196196 }
@@ -208,8 +208,7 @@ public String getSubSignature() {
208208 if (subSignature != null )
209209 return subSignature ;
210210
211- StringBuilder sb = new StringBuilder (
212- 10 + this .returnType .length () + this .name .length () + (this .parameters .size () * 30 ));
211+ StringBuilder sb = new StringBuilder ();
213212 if (!this .returnType .isEmpty ()) {
214213 sb .append (this .returnType );
215214 sb .append (" " );
@@ -240,8 +239,7 @@ public String getSignature() {
240239 if (signature != null )
241240 return signature ;
242241
243- StringBuilder sb = new StringBuilder (10 + getClassName ().length () + this .returnType .length ()
244- + this .name .length () + (this .parameters .size () * 30 ));
242+ StringBuilder sb = new StringBuilder ();
245243 sb .append ("<" );
246244 sb .append (getClassName ());
247245 sb .append (": " );
0 commit comments