diff --git a/java/java-impl/src/com/intellij/application/options/CodeStyleGenerationConfigurable.form b/java/java-impl/src/com/intellij/application/options/CodeStyleGenerationConfigurable.form
index efb9172e285d..4d3d7fe6bfd8 100644
--- a/java/java-impl/src/com/intellij/application/options/CodeStyleGenerationConfigurable.form
+++ b/java/java-impl/src/com/intellij/application/options/CodeStyleGenerationConfigurable.form
@@ -218,7 +218,7 @@
-
+
diff --git a/platform/lang-impl/src/com/intellij/codeInsight/generation/CommentByLineCommentHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/generation/CommentByLineCommentHandler.java
index 5e0a2aa64221..8f329be59201 100644
--- a/platform/lang-impl/src/com/intellij/codeInsight/generation/CommentByLineCommentHandler.java
+++ b/platform/lang-impl/src/com/intellij/codeInsight/generation/CommentByLineCommentHandler.java
@@ -222,7 +222,7 @@ public class CommentByLineCommentHandler extends MultiCaretCodeInsightActionHand
if (!block.skip) {
if (!allLinesCommented) {
if (!block.commentWithIndent) {
- doDefaultCommenting(block, block.addSpace);
+ doDefaultCommenting(block);
}
else {
doIndentCommenting(block);
@@ -433,7 +433,7 @@ public class CommentByLineCommentHandler extends MultiCaretCodeInsightActionHand
return CharArrayUtil.regionMatches(chars, offset, prefix) ? offset : -1;
}
- public void doDefaultCommenting(final Block block, final boolean addSpace) {
+ public void doDefaultCommenting(final Block block) {
final Document document = block.editor.getDocument();
DocumentUtil.executeInBulk(
document, block.endLine - block.startLine >= Registry.intValue("comment.by.line.bulk.lines.trigger"), new Runnable() {
@@ -441,7 +441,7 @@ public class CommentByLineCommentHandler extends MultiCaretCodeInsightActionHand
public void run() {
for (int line = block.endLine; line >= block.startLine; line--) {
int offset = document.getLineStartOffset(line);
- commentLine(block, line, offset, addSpace);
+ commentLine(block, line, offset);
}
}
});
@@ -475,7 +475,7 @@ public class CommentByLineCommentHandler extends MultiCaretCodeInsightActionHand
buffer.append(c);
offset++;
}
- commentLine(block, line, offset, false);
+ commentLine(block, line, offset);
}
}
});
@@ -597,7 +597,7 @@ public class CommentByLineCommentHandler extends MultiCaretCodeInsightActionHand
return false;
}
- private static void commentLine(Block block, int line, int offset, boolean addSpace) {
+ private static void commentLine(Block block, int line, int offset) {
Commenter commenter = block.blockSuitableCommenter;
Document document = block.editor.getDocument();
if (commenter == null) commenter = findCommenter(block.editor, block.psiFile, line);
diff --git a/platform/platform-resources-en/src/messages/ApplicationBundle.properties b/platform/platform-resources-en/src/messages/ApplicationBundle.properties
index 2be307d05a0f..67c5b1dd38ae 100644
--- a/platform/platform-resources-en/src/messages/ApplicationBundle.properties
+++ b/platform/platform-resources-en/src/messages/ApplicationBundle.properties
@@ -733,4 +733,4 @@ code.style.other.label=Text files and unsupported file types\:
remote.desktop.detected.title=Remote desktop detected
remote.desktop.detected.message=Animation disabled
-checkbox.line.comment.prepend.with.space=Prepend with space
\ No newline at end of file
+checkbox.line.comment.add.space=Add a space at comment start
\ No newline at end of file