Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Nov 27, 2024
1 parent fa0d761 commit 82951bb
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@

/**
* A helper class that allows to heavily customize the creation of validation
* result list JSONs
* result list XMLs
*
* @author Philip Helger
* @since 7.2.3
* @since 10.0.3
*/
public class XMLValidationResultListHelper
{
Expand Down Expand Up @@ -143,7 +143,7 @@ public XMLValidationResultListHelper errorCount (@Nullable final MutableInt a)
* </pre>
*
* @param aResponse
* The response JSON object to add to. May not be <code>null</code>.
* The response XML object to add to. May not be <code>null</code>.
* @param aValidationResultList
* The validation result list containing the validation results per
* layer. May not be <code>null</code>.
Expand Down Expand Up @@ -172,11 +172,11 @@ public void applyTo (@Nonnull final IMicroElement aResponse,
int nWarnings = 0;
int nErrors = 0;
{
// Calculate overalls
boolean bValidationInterrupted = false;
IErrorLevel aMostSevere = EErrorLevel.LOWEST;
EExtendedValidity eWorstValidity = EExtendedValidity.VALID;

// Calculate overalls
for (final ValidationResult aVR : aValidationResultList)
{
if (aVR.isSkipped ())
Expand Down Expand Up @@ -216,6 +216,7 @@ public void applyTo (@Nonnull final IMicroElement aResponse,
}
}

// Add the items afterwards
for (final ValidationResult aVR : aValidationResultList)
{
final IMicroElement aVRT = new MicroElement (PhiveXMLHelper.XML_RESULT);
Expand Down Expand Up @@ -253,6 +254,8 @@ public void applyTo (@Nonnull final IMicroElement aResponse,
}
aResponse.appendChild (aVRT);
}

// This is the end of the XML
aResponse.appendElement (PhiveXMLHelper.XML_DURATION_MS).appendText (Long.toString (nDurationMilliseconds));

// Set consumer values
Expand Down

0 comments on commit 82951bb

Please sign in to comment.