mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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.
This commit is contained in:
committed by
Kirill Likhodedov
parent
b20bc8152f
commit
bc02309454
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user