Skip to content

Commit

Permalink
fix using str() instead of asking for string value
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Nov 2, 2021
1 parent 6de58a1 commit 156bccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ public static void main(String args[]) {
buf.append(" if (o == null || o.isNone()) {\n");
buf.append(" return null;\n");
buf.append(" }\n");
buf.append(" return o.getStringValue();\n");
buf.append(" return o.str();\n");
buf.append(" }\n\n");

buf.append(" public static boolean booleanPyCast(Object a) {\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19375,7 +19375,7 @@ public static String doStringPyCast(Object a) {
if (o == null || o.isNone()) {
return null;
}
return o.getStringValue();
return o.str();
}

public static boolean booleanPyCast(Object a) {
Expand Down

0 comments on commit 156bccc

Please sign in to comment.