Bug 51093 [typing] Pressing enter after an opening curly brace closes the curly brace repeatedly.
Pressing enter after an opening curly brace closes the curly brace repeatedly. IF you are about to define a method and you open a curly brace, the completion closing curly brace is added automatically. If you go and press "enter" again in front of the opening curly brace , it adds another closing brace repeatedly.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
continue;
				
				if (!isIndentDetected){
					
					
					String current= getCurrentIndent(temp, l);
					StringBuffer correct= indenter.computeIndentation(lineOffset);
					if (correct == null)
						return; 
					
					insertLength= subtractIndent(correct, current, addition);
					if (l != first)
						isIndentDetected= true;
				}
				
				 
				if (insertLength > 0)
					addIndent(temp, l, addition);
				else if (insertLength < 0)
					cutIndent(temp, l, -insertLength);
				
			}
			
			
			command.text= temp.get(prefix.length(), temp.getLength() - prefix.length());
			
		} catch (BadLocationException e) {
			JavaPlugin.log(e);
		}
	}