Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Commit

Permalink
[swift-generator] Fix generator imports
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcox committed Mar 20, 2013
1 parent 365c23b commit c77aec7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions swift-generator/src/main/resources/templates/java/common.st
Original file line number Diff line number Diff line change
Expand Up @@ -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>
{
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit c77aec7

Please sign in to comment.