From 7d0b2f2c7f6b7ba75437a2af6badede5ddb1be45 Mon Sep 17 00:00:00 2001 From: "Denis.Zhdanov" Date: Wed, 5 Oct 2011 12:36:45 +0400 Subject: [PATCH] Typo is corrected --- .../com/intellij/psi/impl/source/codeStyle/BraceEnforcer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/psi/impl/source/codeStyle/BraceEnforcer.java b/java/java-impl/src/com/intellij/psi/impl/source/codeStyle/BraceEnforcer.java index 6153ac2b95e5..51ebb8cf94a7 100644 --- a/java/java-impl/src/com/intellij/psi/impl/source/codeStyle/BraceEnforcer.java +++ b/java/java-impl/src/com/intellij/psi/impl/source/codeStyle/BraceEnforcer.java @@ -115,7 +115,7 @@ public class BraceEnforcer extends JavaJspRecursiveElementVisitor { String oldText = blockCandidate.getText(); // There is a possible case that target block to wrap ends with single-line comment. Example: - // if (true) i = 1; // Cool assignement + // if (true) i = 1; // Cool assignment // We can't just surround target block of code with curly braces because the closing one will be treated as comment as well. // Hence, we perform a check if we have such situation at the moment and insert new line before the closing brace. int lastLineFeedIndex = oldText.lastIndexOf("\n");