Skip to content

Commit 7705d69

Browse files
committed
typos and cleanup
1 parent ef094ba commit 7705d69

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/htmlunit/cyberneko/HTMLTagBalancer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public class HTMLTagBalancer
205205
/** True if seen anything. Important for xml declaration. */
206206
protected boolean fSeenAnything;
207207

208-
/** True if root element has been seen. */
208+
/** True if doctype has been seen. */
209209
protected boolean fSeenDoctype;
210210

211211
/** True if root element has been seen. */
@@ -283,7 +283,7 @@ public class HTMLTagBalancer
283283
/** Returns the default state for a feature. */
284284
@Override
285285
public Boolean getFeatureDefault(final String featureId) {
286-
final int length = RECOGNIZED_FEATURES != null ? RECOGNIZED_FEATURES.length : 0;
286+
final int length = RECOGNIZED_FEATURES.length;
287287
for (int i = 0; i < length; i++) {
288288
if (RECOGNIZED_FEATURES[i].equals(featureId)) {
289289
return RECOGNIZED_FEATURES_DEFAULTS[i];
@@ -295,7 +295,7 @@ public Boolean getFeatureDefault(final String featureId) {
295295
/** Returns the default state for a property. */
296296
@Override
297297
public Object getPropertyDefault(final String propertyId) {
298-
final int length = RECOGNIZED_PROPERTIES != null ? RECOGNIZED_PROPERTIES.length : 0;
298+
final int length = RECOGNIZED_PROPERTIES.length;
299299
for (int i = 0; i < length; i++) {
300300
if (RECOGNIZED_PROPERTIES[i].equals(propertyId)) {
301301
return RECOGNIZED_PROPERTIES_DEFAULTS[i];
@@ -911,7 +911,7 @@ else if (!fTemplateFragment && elementCode == HTMLElements.SELECT) {
911911
fragmentContextStackSize_--;
912912
}
913913
if (documentHandler_ != null) {
914-
// PATCH: Marc-Andr� Morissette
914+
// PATCH: Marc-André Morissette
915915
callEndElement(info.qname, synthesizedAugs());
916916
}
917917
}

0 commit comments

Comments
 (0)