Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.selesse.jxlint.linter;
 
public class ValidationThread implements Callable<List<LintError>> {
    private static final Logger LOGGER = LoggerFactory.getLogger(ValidationThread.class);
    private LintRule lintRule;
    public ValidationThread(LintRule lintRule) {
        this. = lintRule;
    }
    @Override
    public List<LintErrorcall() throws Exception {
        Stopwatch stopwatch = Stopwatch.createStarted();
        .validate();
        List<LintErrorlintErrorList = .getLintErrors();
        Collections.sort(lintErrorList, LintErrorOrderings.getFileThenLineNumberOrdering());
        stopwatch.stop();
        .info("[{}] took {} milliseconds to execute",
                .getName(), stopwatch.elapsed(.));
        Profiler.addExecutionTime(stopwatch.elapsed(.));
        return .getLintErrors();
    }
New to GrepCode? Check out our FAQ X