Skip to content

Commit

Permalink
Add temporary solution. fix #170
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Forslund committed Apr 8, 2016
1 parent c5ac123 commit b498207
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -63,7 +63,7 @@ private Optional<String> renderName(Generator gen, Type model, String name) {
requireNonNull(name);

return Optional.of(
name + gen.onEach(model.getGenerics()).collect(
name.replace(DOLLAR, DOT) + gen.onEach(model.getGenerics()).collect(
joinIfNotEmpty(
COMMA_SPACE,
SS,
Expand Down
Expand Up @@ -289,10 +289,11 @@ public static void tab(String tab) {
* @return The name part.
*/
public static String shortName(String longName) {
if (longName.contains(DOT)) {
return longName.substring(longName.lastIndexOf(DOT) + 1);
final String temp = longName.replace(DOLLAR, DOT);
if (temp.contains(DOT)) {
return temp.substring(temp.lastIndexOf(DOT) + 1);
} else {
return longName;
return temp;
}
}

Expand Down

0 comments on commit b498207

Please sign in to comment.