# neo4j

GitHub: https://github.com/neo4j/neo4j (opens new window)

jSparrow results for neo4j

Metrics for neo4j (created on 24.6.2019):

Total Java file* count 5693
Number of files changed 5633
Total number of issues fixed 11634
Total time saved 647 hours, 25 minutes
jSparrow run time 6 minutes, 6 seconds
* One Java file could contain more than one Java class.

Per Rule Statistics

This table contains the list of rules that were applied on neo4j.
Rule NameIssues FixedFiles ChangedTime saved
Collapse If Statements 54 48 4 hours, 30 minutes
Rearrange Class Members 908 853 75 hours, 40 minutes
Reformat Code 5633 5633 93 hours, 53 minutes
Remove Boxing for String Conversions 43 28 3 hours, 35 minutes
Remove Explicit Call To super() 25 21 25 minutes
Remove Explicit Type Argument 8 7 8 minutes
Remove Inherited Interfaces from Class Declaration 5 5 10 minutes
Remove Lambda Expression Braces 346 225 28 hours, 50 minutes
Remove Unnecessary Thrown Exceptions on Method Signatures 302 114 10 hours, 4 minutes
Remove Unused Parameters in Private Methods 21 12 1 hour, 45 minutes
Rename Fields 562 63 140 hours, 30 minutes
Reorder String Equality Check 101 55 16 hours, 50 minutes
Replace Assignment with Compound Operator 9 6 18 minutes
Replace Equality Check with isEmpty() 12 11 24 minutes
Replace equals() on Enum Constants 26 17 52 minutes
Replace Expression Lambda with Method Reference 110 83 3 hours, 40 minutes
Replace For-Loop with Enhanced-For-Loop 15 10 1 hour, 15 minutes
Replace For-Loop with Iterable::forEach 486 283 121 hours, 30 minutes
Replace For-Loop with Stream::findFirst 7 7 14 minutes
Replace For-Loop with Stream::Match 10 10 20 minutes
Replace indexOf() with contains() 1 1 2 minutes
Replace Inefficient Constructors with valueOf() 15 2 1 hour, 15 minutes
Replace put(..) with putIfAbsent(..) 1 1 2 minutes
Replace static final Collections with Collections.unmodifiable...() 8 6 1 hour, 20 minutes
Replace While-Loop with Enhanced For-Loop 3 3 15 minutes
Split Multiple Variable Declarations 55 22 1 hour, 50 minutes
System Out To Logging 1 1 10 minutes
Use @Override Annotation 18 14 1 hour, 30 minutes
Use BufferedReader::lines 3 3 15 minutes
Use equals() on Primitive Objects 2 2 4 minutes
Use Functional Interfaces 8 8 40 minutes
Use Guard Condition 546 405 45 hours, 30 minutes
Use Multi Catch 2 2 10 minutes
Use Portable Newline 9 6 9 minutes
Use Stream::collect 1 1 15 minutes
Use Stream::filter 28 21 2 hours, 20 minutes
Use Stream::map 13 12 3 hours, 15 minutes
Use String Literals 14 4 1 hour, 10 minutes
Use StringBuilder::append 2185 882 72 hours, 50 minutes
Use Try-With-Resource 38 13 9 hours, 30 minutes
* One Java file could contain more than one Java class.