#266 Additional log call for Check API class

release_3.4
closed
5
2012-10-10
2003-11-17
No

When I'm writing a new check I often use a statement
similar to

log(aAST.getLineNo(), aAST.getColumnNo(), "an.error");

for logging and when I look at other checks it seems
that this occurs quite frequently. Would it be possible to
add a method in the APIs Check.java class in the form of

void log(DetailAST aAST, String aError)
{
log(aAST.getLineNo(), aAST.getColumnNo(), aError);
}

I think this would look a bit cleaner when writing checks.

Discussion

  • Logged In: YES
    user_id=746148

    Changes committed in CVS for 3.4