checkClosingTag method Null safety

void checkClosingTag(
  1. String expected,
  2. String actual
)

Ensure that the expected tag matches the actual one.

Implementation

static void checkClosingTag(String expected, String actual) {
  if (expected != actual) {
    throw XmlTagException.mismatchClosingTag(expected, actual);
  }
}