mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
fix a few warnings in the Java binding
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user