Skip to content

Commit

Permalink
ISSUE fmidev#80
Browse files Browse the repository at this point in the history
Code style fixes
  • Loading branch information
patrick-alaspaa committed Jun 3, 2021
1 parent 7a656a9 commit d311e31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private static IssueList collectTAF30Message(final Element featureElement, final
}

expr = xpath.compile("@isCancelReport");
final boolean isCancelMessage = (expr.evaluate(featureElement) != null && expr.evaluate(featureElement).toLowerCase().equals("true")) ? true : false;
final boolean isCancelMessage = (expr.evaluate(featureElement) != null && expr.evaluate(featureElement).toLowerCase().equals("true"));
if(isCancelMessage) {
collectValidTime(featureElement, "./iwxxm30:cancelledReportValidPeriod", xpath, builder);
} else {
Expand Down Expand Up @@ -147,7 +147,7 @@ private static IssueList collectValidTime(final Element featureElement, final St
}

private static void parseAerodromeInfo(final Element featureElement, final XPathExpression timeSliceExpretion, final XPath xpath,
final GenericAviationWeatherMessageImpl.Builder builder, final IssueList issues, String status) throws XPathExpressionException {
final GenericAviationWeatherMessageImpl.Builder builder, final IssueList issues, final String status) throws XPathExpressionException {
final NodeList nodes = (NodeList) timeSliceExpretion.evaluate(featureElement, XPathConstants.NODESET);
if (nodes.getLength() == 1) {
builder.setTargetAerodrome(parseAerodromeInfo((Element) nodes.item(0), xpath, issues));
Expand Down

0 comments on commit d311e31

Please sign in to comment.