Commit bc023094 authored by Dmitriy Smirnov's avatar Dmitriy Smirnov Committed by Kirill Likhodedov
Browse files

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.
parent b20bc815
Branches unavailable Tags unavailable
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -44,13 +44,13 @@ public class CheckinHandlersManagerImpl extends CheckinHandlersManager {
public List<BaseCheckinHandlerFactory> getRegisteredCheckinHandlerFactories(AbstractVcs<?>[] allActiveVcss) {
final List<BaseCheckinHandlerFactory> list =
new ArrayList<>(myRegisteredBeforeCheckinHandlers.size() + allActiveVcss.length);
list.addAll(myRegisteredBeforeCheckinHandlers);
for (AbstractVcs vcs : allActiveVcss) {
final Collection<VcsCheckinHandlerFactory> factories = myVcsMap.get(vcs.getKeyInstanceMethod());
if (!factories.isEmpty()) {
list.addAll(factories);
}
}
list.addAll(myRegisteredBeforeCheckinHandlers);
return list;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment