private int anchorRefCount = 0;
+ private int invalidAnchorRefCount = 0;
+
private int externalHrefCount = 0;
private int invalidMapUrlCount = 0;
internalHrefCount, anchorRefCount));
System.out.println(invalidInternalHrefCount
+ " invalid internal href links");
+ System.out.println(invalidAnchorRefCount
+ + " invalid internal anchor links");
System.out.println(externalHrefCount + " external href links");
if (internetAvailable)
{
System.out.println(String.format(
"Invalid anchor: %s at line %d of %s", anchor,
lineNo, getPath(htmlFile)));
+ invalidAnchorRefCount++;
}
}
}