Permalink
Browse files

[swift-generator] Fix generator imports

  • Loading branch information...
andrewcox committed Mar 19, 2013
1 parent 365c23b commit c77aec7da37f2463ce37f2d3e02800367747e5b7
Showing with 3 additions and 2 deletions.
  1. +3 −2 swift-generator/src/main/resources/templates/java/common.st
@@ -31,9 +31,10 @@ struct(context, tweaks) ::= <<
package <context.javaPackage>;
import com.facebook.swift.codec.*;
-import com.google.common.base.*;
import java.util.*;
+import static com.google.common.base.Objects.toStringHelper;
+
@ThriftStruct("<context.name>")
public class <context.javaName>
{
@@ -156,7 +157,7 @@ _toString(context) ::= <<
@Override
public String toString()
{
- return Objects.toStringHelper(this)
+ return toStringHelper(this)
<context.fields : { field |<_toStringField(field)>}; separator="\n">
.toString();
}

0 comments on commit c77aec7

Please sign in to comment.