terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.82k stars 248 forks source link

Variable declaration with anonymous class initiation detected as method in Java. #311

Open cg122 opened 3 years ago

cg122 commented 3 years ago

ThreadLocal<Long> returned as function name that is problematic.

    private ThreadLocal<Long> startTime = new ThreadLocal<Long>() {
            @Override protected Long initialValue() {
                return 0L;
            }
    };