Skip to content

Commit

Permalink
Fixed stack overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Mar 3, 2024
1 parent 48cf682 commit 9768f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public Map<String, String> labels() {

@Override
public String toString() {
return (this.nameRecord()+(" ("+(this.refName()+")")));
return (this.name()+(" ("+(this.refName()+")")));
}

public static Optional<LanguageFamilyCode> get(String code) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void create639_1() throws JClassAlreadyExistsException, IOException {
@Test
public void create639_5() throws JClassAlreadyExistsException, IOException, ClassNotFoundException {

JCodeModel model = new JCodeModel();
JCodeModel model = new JCodeModel();
JDefinedClass iso639_5 = model._class("org.meeuw.i18n.languages.LanguageFamilyCode", ClassType.ENUM);
iso639_5._implements(ISO_639_Code.class);

Expand Down Expand Up @@ -151,7 +151,7 @@ public void create639_5() throws JClassAlreadyExistsException, IOException, Clas
{
JMethod toString = iso639_5.method(JMod.PUBLIC, String.class, "toString");
toString.annotate(Override.class);
toString.body()._return(JExpr._this().invoke("nameRecord").plus(JExpr.lit(" (").plus(JExpr._this().invoke("refName").plus(JExpr.lit(")")))));
toString.body()._return(JExpr._this().invoke("name").plus(JExpr.lit(" (").plus(JExpr._this().invoke("refName").plus(JExpr.lit(")")))));
}
{

Expand Down

0 comments on commit 9768f1e

Please sign in to comment.