Skip to content

Commit d6daf70

Browse files
committed
Fixes for the recent Stats changes
1 parent 3d4def5 commit d6daf70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/metrics/loc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,19 +827,19 @@ impl Loc for JavaCode {
827827
| EnhancedForStatement | ExpressionStatement | ForStatement | IfStatement
828828
| ReturnStatement | SwitchStatement | ThrowStatement | TryStatement
829829
| WhileStatement => {
830-
stats.logical_lines += 1;
830+
stats.lloc.logical_lines += 1;
831831
}
832832
LocalVariableDeclaration => {
833833
if count_specific_ancestors!(node, ForStatement, Block) == 0 {
834834
// The initializer, condition, and increment in a for loop are expressions.
835835
// Don't count the variable declaration if in a ForStatement.
836836
// https://docs.oracle.com/javase/tutorial/java/nutsandbolts/for.html
837-
stats.logical_lines += 1;
837+
stats.lloc.logical_lines += 1;
838838
}
839839
}
840840
_ => {
841841
check_comment_ends_on_code_line(stats, start);
842-
stats.lines.insert(start);
842+
stats.ploc.lines.insert(start);
843843
}
844844
}
845845
}

0 commit comments

Comments
 (0)