Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
d7d2e99a
Commit
d7d2e99a
authored
Sep 13, 2021
by
Piotr Gawron
Browse files
empty if statement prohibited
parent
9cad2d91
Changes
3
Hide whitespace changes
Inline
Side-by-side
checkstyle.xml
View file @
d7d2e99a
...
...
@@ -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>
...
...
converter-sbml/src/test/java/lcsb/mapviewer/converter/model/sbml/reaction/SbmlReactionExportArrowType.java
View file @
d7d2e99a
...
...
@@ -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
);
...
...
converter/src/main/java/lcsb/mapviewer/converter/annotation/XmlAnnotationParser.java
View file @
d7d2e99a
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment