Commit d7d2e99a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

empty if statement prohibited

parent 9cad2d91
......@@ -62,7 +62,7 @@
<property name="excludes" value="org.junit.jupiter.api.Assertions.*"/>
</module>
<module name="OneTopLevelClass"/>
<!-- <module name="NoLineWrap">
<module name="NoLineWrap">
<property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
</module>
<module name="EmptyBlock">
......@@ -70,7 +70,7 @@
<property name="tokens"
value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
</module>
<module name="NeedBraces">
<!-- <module name="NeedBraces">
<property name="tokens"
value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
</module>
......
......@@ -93,8 +93,7 @@ public class SbmlReactionExportArrowType extends SbmlTestFunctions {
reaction.addReactant(reactant);
Product product = createProduct(ion2);
reaction.addProduct(product);
if (SimpleReactionInterface.class.isAssignableFrom(clazz)) {
} else if (TwoReactantReactionInterface.class.isAssignableFrom(clazz)) {
if (TwoReactantReactionInterface.class.isAssignableFrom(clazz)) {
reaction.addReactant(createReactant(ion3));
NodeOperator operator;
if (HeterodimerAssociationReaction.class.isAssignableFrom(clazz)) {
......@@ -119,7 +118,7 @@ public class SbmlReactionExportArrowType extends SbmlTestFunctions {
operator.addOutputs(reaction.getProducts());
operator.setLine(new PolylineData(new Point2D.Double(10, 10), new Point2D.Double(10, 20)));
reaction.addNode(operator);
} else {
} else if (!SimpleReactionInterface.class.isAssignableFrom(clazz)) {
throw new NotImplementedException();
}
reaction.setZ(1);
......
......@@ -126,8 +126,11 @@ public class XmlAnnotationParser {
if (relationType != null) {
miriamDataSet.addAll(parseMiriamNode(node, marker));
} else if (relationTypeString.equals("dc:creator")) {
continue;
} else if (relationTypeString.equals("dcterms:created")) {
continue;
} else if (relationTypeString.equals("dcterms:modified")) {
continue;
} else {
logger.warn("RDF relation type is not supported: " + relationTypeString);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment