From 4bc083fd7f87e780170f5c42bd9ee8a589bddda0 Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Fri, 12 Jun 2026 21:51:27 +0100 Subject: [PATCH] Remove confusing comments --- .../test/query-tests/UseBraces/UseBraces.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/java/ql/test/query-tests/UseBraces/UseBraces.java b/java/ql/test/query-tests/UseBraces/UseBraces.java index af36436bcca..1e5487f1f7b 100644 --- a/java/ql/test/query-tests/UseBraces/UseBraces.java +++ b/java/ql/test/query-tests/UseBraces/UseBraces.java @@ -26,10 +26,10 @@ class UseBraces if(1==1) f(); // $ Alert - g(); // Alert + g(); if(1==1) - f(); g(); // $ Alert // Alert + f(); g(); // $ Alert // If-then-else statement @@ -56,14 +56,14 @@ class UseBraces } else f(); // $ Alert - g(); // Alert + g(); if(true) { f(); } else - f(); g(); // $ Alert // Alert + f(); g(); // $ Alert // While statement @@ -80,11 +80,11 @@ class UseBraces while(bb ) f(); // $ Alert - g(); // Alert + g(); g(); // No alert while(bb ) - f(); g(); // $ Alert // Alert + f(); g(); // $ Alert while(bb) @@ -110,10 +110,10 @@ class UseBraces for(int i=0; i<10; ++i) f(); // $ Alert - g(); // Alert + g(); for(int i=0; i<10; ++i) - f(); g(); // $ Alert // Alert + f(); g(); // $ Alert // Foreach statement @@ -130,10 +130,10 @@ class UseBraces for( int b : branches) f(); // $ Alert - g(); // Alert + g(); for( int b : branches) - f(); g(); // $ Alert // Alert + f(); g(); // $ Alert // Nested ifs if( true ) @@ -144,7 +144,7 @@ class UseBraces if( true ) if(false) // $ Alert f(); - g(); // Alert + g(); if( true ) ; @@ -164,7 +164,7 @@ class UseBraces ; else if (false) f(); // $ Alert - g(); // Alert + g(); // Nested combinations if (true) @@ -175,7 +175,7 @@ class UseBraces if (true) while (x<10) // $ Alert f(); - g(); // Alert + g(); while (x<10) if (true) @@ -185,7 +185,7 @@ class UseBraces while (x<10) if (true) // $ Alert f(); - g(); // Alert + g(); if (true) f();