fix a few warnings in the Java binding

This commit is contained in:
kr.angelov
2013-09-04 13:37:40 +00:00
parent 7c000467c9
commit 9f0f99bba4
3 changed files with 5 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ public class ExprProb {
this.prob = prob;
}
@SuppressWarnings("unused")
private static ExprProb mkExprProb(Pool pool, PGF gr, long expr, double prob) {
return new ExprProb(new Expr(pool, gr, expr), prob);
}

View File

@@ -1,6 +1,8 @@
package org.grammaticalframework.pgf;
public class PGFError extends RuntimeException {
private static final long serialVersionUID = -5098784200043861938L;
public PGFError(String message) {
super(message);
}

View File

@@ -1,6 +1,8 @@
package org.grammaticalframework.pgf;
public class ParseError extends Exception {
private static final long serialVersionUID = -6086991674218306569L;
public ParseError(String token) {
super(token);
}