diff --git a/thrifty-java-codegen/src/main/java/com/bendb/thrifty/gen/ThriftyCodeGenerator.java b/thrifty-java-codegen/src/main/java/com/bendb/thrifty/gen/ThriftyCodeGenerator.java
index <HASH>..<HASH> 100644
--- a/thrifty-java-codegen/src/main/java/com/bendb/thrifty/gen/ThriftyCodeGenerator.java
+++ b/thrifty-java-codegen/src/main/java/com/bendb/thrifty/gen/ThriftyCodeGenerator.java
@@ -657,7 +657,7 @@ public final class ThriftyCodeGenerator {
 
             toString.addStatement("return sb.toString()");
         } else {
-            toString.addStatement("return $S{}", struct.name());
+            toString.addStatement("return $S", struct.name() + "{}");
         }
 
         return toString.build();
Fix generated tostring for empty structs