Program Analysis Result


Program SyntheticProgram_BLOCH_2_4 (es.uniovi.reflection.programs.syntheticprogram.bloch.2.4)
Owner Computational Reflection (garciarmiguel@uniovi.es)
Analysis Date 05-12-2026 10:59
Analysis Elapsed Time 00:00:03.219
Number of Analyses 1
Number of Projects 1
Number of Files 27
Lines of Code 411
Non Empty Lines of Code 329
Number of Nodes 1,887
Number of Relationships 4,385
100.00%
Overall Score
8 checks executed
0 warnings found
Analysis Category Syntactic Construct Score
For parameter types, favor interfaces over classes
es.uniovi.reflection.analyses.bloch.7.40.2
Bad Practice Parameter Declaration 0/8 (100.00%)

This rule detects public method or constructor definitions in which the type of one of its parameters implements a interface that can be interchanged for the type. This interface should define all the methods and fields used in the body of the method. The change should not affect the rest of the implementation (those regarding lvalue types in assignments and method invocations where the parameter is passed as argument), but may generate small errors that could be solved with easy fixes.