Skip to content

Commit df16677

Browse files
committed
suppressed unused method warnings
1 parent 6601131 commit df16677

File tree

11 files changed

+11
-1
lines changed

11 files changed

+11
-1
lines changed

src/main/java/com/igormaznitsa/prologparser/DefaultParserContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* Default implementation of parser context.
3939
* <b>It is not thread safe one!</b>
4040
*/
41+
@SuppressWarnings("unused")
4142
public class DefaultParserContext implements ParserContext {
4243

4344
protected static final Op[] EMPTY = new Op[0];

src/main/java/com/igormaznitsa/prologparser/ParserContextChain.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
/**
3232
* Auxiliary class allows to make chain of prolog contexts.
3333
*/
34+
@SuppressWarnings("unused")
3435
public class ParserContextChain implements ParserContext {
3536
private final ParserContext[] contexts;
3637
private final int tokenizerFlags;

src/main/java/com/igormaznitsa/prologparser/terms/InternalSpecialCompoundTerm.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
/**
2727
* Base class for special service terms for use on level of parser.
2828
*/
29+
@SuppressWarnings("unused")
2930
public abstract class InternalSpecialCompoundTerm extends PrologCompound {
3031

3132
private static final long serialVersionUID = 71286378126323213L;

src/main/java/com/igormaznitsa/prologparser/terms/PrologAtom.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/**
2525
* Prolog atom.
2626
*/
27+
@SuppressWarnings("unused")
2728
public final class PrologAtom extends PrologTerm {
2829

2930
private static final long serialVersionUID = -1829006002358498466L;

src/main/java/com/igormaznitsa/prologparser/terms/PrologFloat.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
/**
3030
* Representation for float numeric term.
3131
*/
32+
@SuppressWarnings("unused")
3233
public final class PrologFloat extends PrologNumeric {
3334

3435
public static final MathContext MATH_CONTEXT = MathContext.DECIMAL64;

src/main/java/com/igormaznitsa/prologparser/terms/PrologInt.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
/**
3333
* Representation of integer numeric term.
3434
*/
35+
@SuppressWarnings("unused")
3536
public final class PrologInt extends PrologNumeric {
3637

3738
private static final long serialVersionUID = 6955747225309951985L;

src/main/java/com/igormaznitsa/prologparser/terms/PrologList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
/**
3636
* Representation of prolog list term.
3737
*/
38+
@SuppressWarnings("unused")
3839
public final class PrologList extends PrologStruct implements Iterable<PrologTerm> {
3940
public static final PrologTerm LIST_FUNCTOR = new PrologAtom(".", Quotation.SINGLE);
4041
private static final long serialVersionUID = -3781631438477816869L;

src/main/java/com/igormaznitsa/prologparser/terms/PrologNumeric.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/**
2525
* Base class for all numeric terms.
2626
*/
27+
@SuppressWarnings("unused")
2728
public abstract class PrologNumeric extends PrologTerm {
2829

2930
private static final long serialVersionUID = -1815562758090770438L;

src/main/java/com/igormaznitsa/prologparser/terms/PrologStruct.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
/**
4040
* Representation of prolog structure.
4141
*/
42-
@SuppressWarnings("SameParameterValue")
42+
@SuppressWarnings({"SameParameterValue", "unused"})
4343
public class PrologStruct extends PrologCompound implements Iterable<PrologTerm> {
4444

4545
public static final PrologAtom EMPTY_ATOM = new PrologAtom("", Quotation.SINGLE);

src/main/java/com/igormaznitsa/prologparser/terms/PrologVar.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/**
2525
* Representation of prolog variable.
2626
*/
27+
@SuppressWarnings("unused")
2728
public final class PrologVar extends PrologTerm {
2829
private static final long serialVersionUID = 1158349084517573220L;
2930
private final boolean anonymous;

0 commit comments

Comments
 (0)