fix clone in bit set

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6888]
This commit is contained in:
parrt 2010-05-23 16:53:06 -08:00
parent 8ee1042f03
commit f89ad35e1b
2 changed files with 4 additions and 4 deletions

View File

@ -321,7 +321,6 @@ public abstract class BaseRecognizer {
* so that it creates a new Java type.
*/
public String getTokenErrorDisplay(Token t) {
System.err.println("mmmm3");
String s = t.getText();
if ( s==null ) {
if ( t.getType()==Token.EOF ) {

View File

@ -3,7 +3,7 @@ package org.antlr.v4.runtime.misc;
import org.antlr.runtime.Token;
/** */
public class LABitSet {
public class LABitSet implements Cloneable {
public final static int BITS = 64; // number of bits / long
public final static int LOG_BITS = 6; // 2^6 == 64
@ -113,11 +113,12 @@ public class LABitSet {
s.bits = new long[bits.length];
System.arraycopy(bits, 0, s.bits, 0, bits.length);
s.EOF = EOF;
return s;
}
catch (CloneNotSupportedException e) {
throw new InternalError();
e.printStackTrace(System.err);
}
return s;
return null;
}
/**