package com.pengrad.telegrambot.model.request;

import com.google.gson.Gson;

/**
 * stas
 * 8/11/15
 */
public abstract class Keyboard {

    @Override
    public final String toString() {
        return new Gson().toJson(this);
    }

}

package com.pengrad.telegrambot.model.request;

import com.google.gson.Gson;

/**
 * stas
 * 8/11/15
 */
public abstract class Keyboard {

    private Gson gson = new Gson();

    @Override
    public final String toString() {
        return gson.toJson(this);
    }

}

Use one Gson instance in Keyboard