From bc0230945436d355e8918ec58f53740ffb614cf7 Mon Sep 17 00:00:00 2001 From: Dmitriy Smirnov Date: Mon, 13 Mar 2017 22:17:34 +0000 Subject: [PATCH] Check commit message for emptiness before code analysis IDEA-168568 VCS before-checkin operations are usually faster than the ones related to the code analysis. --- .../intellij/openapi/vcs/impl/CheckinHandlersManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/CheckinHandlersManagerImpl.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/CheckinHandlersManagerImpl.java index 8b59b72de416..7074a371a3ab 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/CheckinHandlersManagerImpl.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/CheckinHandlersManagerImpl.java @@ -44,13 +44,13 @@ public class CheckinHandlersManagerImpl extends CheckinHandlersManager { public List getRegisteredCheckinHandlerFactories(AbstractVcs[] allActiveVcss) { final List list = new ArrayList<>(myRegisteredBeforeCheckinHandlers.size() + allActiveVcss.length); - list.addAll(myRegisteredBeforeCheckinHandlers); for (AbstractVcs vcs : allActiveVcss) { final Collection factories = myVcsMap.get(vcs.getKeyInstanceMethod()); if (!factories.isEmpty()) { list.addAll(factories); } } + list.addAll(myRegisteredBeforeCheckinHandlers); return list; } }