Remove Guava dependency from TableHandle
@@ -23,7 +23,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
import java.util.Optional;
-import static com.google.common.base.MoreObjects.toStringHelper;
import static java.util.Objects.requireNonNull;
public final class TableHandle
@@ -102,10 +101,12 @@ public final class TableHandle
@Override
public String toString()
{
- return toStringHelper(this)
- .add("connectorId", connectorId)
- .add("connectorHandle", connectorHandle)
- .add("layout", layout)
- .toString();
+ StringBuilder stringBuilder = new StringBuilder(this.getClass().getSimpleName());
+ stringBuilder.append(" {");
+ stringBuilder.append("connectorId='").append(connectorId).append('\'');
+ stringBuilder.append(", connectorHandle='").append(connectorHandle).append('\'');
+ stringBuilder.append(", layout='").append(layout).append('\'');
+ stringBuilder.append('}');
+ return stringBuilder.toString();
}
}
