1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-16 01:12:05 +01:00

Remove debugging fields

This commit is contained in:
Paul Schaub 2022-10-26 18:24:19 +02:00
parent 585f693545
commit 0d4dc7d170

View file

@ -16,7 +16,6 @@ import static org.pgpainless.decryption_verification.syntax_check.StackAlphabet.
public class PDA { public class PDA {
private static int ID = 0;
private static final Logger LOGGER = LoggerFactory.getLogger(PDA.class); private static final Logger LOGGER = LoggerFactory.getLogger(PDA.class);
/** /**
@ -171,13 +170,11 @@ public class PDA {
private final Stack<StackAlphabet> stack = new Stack<>(); private final Stack<StackAlphabet> stack = new Stack<>();
private State state; private State state;
private int id;
public PDA() { public PDA() {
state = State.OpenPgpMessage; state = State.OpenPgpMessage;
stack.push(terminus); stack.push(terminus);
stack.push(msg); stack.push(msg);
this.id = ID++;
} }
public void next(InputAlphabet input) throws MalformedOpenPgpMessageException { public void next(InputAlphabet input) throws MalformedOpenPgpMessageException {
@ -240,6 +237,6 @@ public class PDA {
@Override @Override
public String toString() { public String toString() {
return "PDA " + id + ": State: " + state + " Stack: " + stack; return "State: " + state + " Stack: " + stack;
} }
} }