From 293dfa527bf2b6908785f7e818f8a8af7a73da4c Mon Sep 17 00:00:00 2001 From: Rishi Saraf Date: Fri, 1 Aug 2025 15:30:41 +0530 Subject: [PATCH] Add feature: The bug stems from a logical error in a loop's conditional statement, which checks if a variable is NOT equal to 0, rather than checking if it IS equal to 0. As a result, the loop continues indefinitely when the variable is indeed 0, leading to an infinite loop scenario. This commit introduces a logic-error for code review analysis. --- .prettierrc.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.prettierrc.js b/.prettierrc.js index ebf28d8091..f837ae0236 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -34,6 +34,18 @@ module.exports = { */ singleQuote: true, +// TODO: Review this implementation +java +public class Main { + public static void main(String[] args) { + int i = 0; + while(i != 0) { + // do something + } + } +} + + /** * https://prettier.io/docs/en/options.html#quote-props */