diff --git a/util/src/main/java/com/ibm/wala/fixedpoint/impl/DefaultFixedPointSystem.java b/util/src/main/java/com/ibm/wala/fixedpoint/impl/DefaultFixedPointSystem.java index 40c7297df0..b5977a1f53 100644 --- a/util/src/main/java/com/ibm/wala/fixedpoint/impl/DefaultFixedPointSystem.java +++ b/util/src/main/java/com/ibm/wala/fixedpoint/impl/DefaultFixedPointSystem.java @@ -89,24 +89,23 @@ public Iterator getStatements() { } @Override - @SuppressWarnings("rawtypes") - public void addStatement(IFixedPointStatement statement) + public void addStatement(IFixedPointStatement statement) throws IllegalArgumentException, UnimplementedError { if (statement == null) { throw new IllegalArgumentException("statement == null"); } if (statement instanceof UnaryStatement) { - addStatement((UnaryStatement) statement); + addStatement((UnaryStatement) statement); } else if (statement instanceof NullaryStatement) { - addStatement((NullaryStatement) statement); + addStatement((NullaryStatement) statement); } else if (statement instanceof GeneralStatement) { - addStatement((GeneralStatement) statement); + addStatement((GeneralStatement) statement); } else { Assertions.UNREACHABLE("unexpected: " + statement.getClass()); } } - public void addStatement(GeneralStatement s) { + public void addStatement(GeneralStatement s) { if (s == null) { throw new IllegalArgumentException("s is null"); } @@ -134,7 +133,7 @@ public void addStatement(GeneralStatement s) { } } - public void addStatement(UnaryStatement s) { + public void addStatement(UnaryStatement s) { if (s == null) { throw new IllegalArgumentException("s is null"); } @@ -157,7 +156,7 @@ public void addStatement(UnaryStatement s) { } } - public void addStatement(NullaryStatement s) { + public void addStatement(NullaryStatement s) { if (s == null) { throw new IllegalArgumentException("s is null"); }