Skip to content

Commit 73399eb

Browse files
committed
Move Gson to static in Keyboard json serialization
1 parent 9ae5a8e commit 73399eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/pengrad/telegrambot/model/request/Keyboard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
public abstract class Keyboard {
1010

11-
private Gson gson = new Gson();
11+
private static Gson gson = new Gson();
1212

1313
@Override
1414
public final String toString() {

0 commit comments

Comments
 (0)