I don't think warning level "None" was really doing the trick. Fixed that.
You can now customize the severities of all warnings, even 504 and 510. When warning level is "None", scanning, i.e. lexical analysis, is faster.
This commit is contained in:
parent
e2d42f36eb
commit
1a055f3472
7 changed files with 68 additions and 33 deletions
|
@ -333,14 +333,15 @@ public class TibTextUtils implements THDLWylieConstants {
|
|||
throws InvalidACIPException
|
||||
{
|
||||
StringBuffer errors = new StringBuffer();
|
||||
ArrayList al = ACIPTshegBarScanner.scan(acip, errors, 500, false);
|
||||
String warningLevel = withWarnings ? "All" : "None";
|
||||
ArrayList al = ACIPTshegBarScanner.scan(acip, errors, 500, false,
|
||||
warningLevel);
|
||||
if (null == al || errors.length() > 0) {
|
||||
if (errors.length() > 0)
|
||||
throw new InvalidACIPException(errors.toString());
|
||||
else
|
||||
throw new InvalidACIPException("Fatal error converting ACIP to TMW.");
|
||||
}
|
||||
String warningLevel = withWarnings ? "All" : "None";
|
||||
boolean colors = withWarnings;
|
||||
boolean putWarningsInOutput = false;
|
||||
if ("None" != warningLevel) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue