Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anna Kozlova
2012-08-31 21:55:05 +04:00
65 changed files with 131 additions and 86 deletions
@@ -151,6 +151,14 @@ class BuildMessageDispatcher extends SimpleChannelHandler {
}
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {
final Throwable cause = e.getCause();
if (cause != null) {
LOG.info(cause);
}
ctx.sendUpstream(e);
}
@Override
public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
@@ -503,4 +503,17 @@ public class JavaFormatterIndentationTest extends AbstractJavaFormatterTest {
"// This is a line comment"
);
}
public void testMultilineComment() {
// IDEA-90860
String text =
"\n" +
"/*\n" +
" * comment\n" +
" */\n" +
"\n" +
"class Test {\n" +
"}";
doTextTest(text, text);
}
}