Skip to content

Static analyzer for detecting redundant null-comparisons in Java class-files

Notifications You must be signed in to change notification settings

SamWot/NullDetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NullDetect

Static analyzer for detecting redundant null-comparisons in Java class-files. For this NullDetect parses compiled class-file and aplies data-flow analysis.

Prerequisites

  • JDK 1.8
  • Maven:
    • ASM 5.2 to parse class-files and as a base for data-flow analysis
    • JUnit 4.12 for unit testing
    • TestFX 4.0.8 (Core and JUnit) for GUI testing

Build

mvn package

Usage

Run GUI with:

java -jar <jar-with-dependencies>

To analyze select directory with class-files and press Start button. You can cancel background analysis by pressing Cancel button or selecting new directory with help of Brwose button.

ToDo:

  • GUI testing
  • Improve documentation
  • Migrate to ASM 6.0
  • Migrate to JUnit 5 and use dynamic tests for individual test resources
  • Separate CSS from GUI
  • Improve analysis
  • Simplify AnalyzerTask (AnalyzerTask could simply run AnalyzerJobs. Individual AnalyzerJobs could write their results directly into observable concurrent map)
  • Add automatic compilation of test resources

About

Static analyzer for detecting redundant null-comparisons in Java class-files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages