forked from GitHub/gf-core
fix a few warnings in the Java binding
This commit is contained in:
@@ -9,6 +9,7 @@ public class ExprProb {
|
|||||||
this.prob = prob;
|
this.prob = prob;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static ExprProb mkExprProb(Pool pool, PGF gr, long expr, double prob) {
|
private static ExprProb mkExprProb(Pool pool, PGF gr, long expr, double prob) {
|
||||||
return new ExprProb(new Expr(pool, gr, expr), prob);
|
return new ExprProb(new Expr(pool, gr, expr), prob);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package org.grammaticalframework.pgf;
|
package org.grammaticalframework.pgf;
|
||||||
|
|
||||||
public class PGFError extends RuntimeException {
|
public class PGFError extends RuntimeException {
|
||||||
|
private static final long serialVersionUID = -5098784200043861938L;
|
||||||
|
|
||||||
public PGFError(String message) {
|
public PGFError(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package org.grammaticalframework.pgf;
|
package org.grammaticalframework.pgf;
|
||||||
|
|
||||||
public class ParseError extends Exception {
|
public class ParseError extends Exception {
|
||||||
|
private static final long serialVersionUID = -6086991674218306569L;
|
||||||
|
|
||||||
public ParseError(String token) {
|
public ParseError(String token) {
|
||||||
super(token);
|
super(token);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user