From 37d8defb4d37177b435940623e797a7a4f8124d3 Mon Sep 17 00:00:00 2001 From: Kuba3105 Date: Wed, 25 Sep 2024 09:02:11 +0200 Subject: [PATCH] Fixed nested if/while/... bug --- .../jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java | 1 - 1 file changed, 1 deletion(-) diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java index e6b70810aa4..9fe9b601aa7 100755 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java @@ -965,7 +965,6 @@ private void computeFoldingStructureOfControlStatements(String source, FoldingSt try { while ((token = scanner.getNextToken()) != ITerminalSymbols.TokenNameEOF) { switch (token) { - case ITerminalSymbols.TokenNameLBRACE: blockStarts.push(scanner.getCurrentTokenStartPosition()); break;