style: enable MultipleVariableDeclarations in checkstyle (#5175)

Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
This commit is contained in:
vaibhav9t1
2024-05-25 23:48:27 +05:30
committed by GitHub
parent 44ce6e7b0d
commit 9eaa2bb756
82 changed files with 299 additions and 121 deletions

View File

@@ -18,7 +18,9 @@ public final class Tribonacci {
if (n == 0) return 0;
if (n == 1 || n == 2) return 1;
int first = 0, second = 1, third = 1;
int first = 0;
int second = 1;
int third = 1;
for (int i = 3; i <= n; i++) {
int next = first + second + third;