added Serializable interface to Pair class

In order to serialize an ArrayList of CommonTokens without errors
This commit is contained in:
Fabio Ramponi 2014-10-16 13:57:22 +02:00
parent 68bf457b87
commit 5f1759cc54
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@
package org.antlr.v4.runtime.misc;
public class Pair<A,B> {
import java.io.Serializable;
public class Pair<A,B> implements Serializable {
public final A a;
public final B b;