Change bus default mode to better one. Fixed varArgPossibility to reflect actual state

This commit is contained in:
nathan 2015-06-07 23:36:29 +02:00
parent 1287612685
commit 2247b5f24c
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ public class MultiMBassador implements IMessageBus {
* @param numberOfThreads how many threads to have for dispatching async messages
*/
public MultiMBassador(int numberOfThreads) {
this(PublishMode.ExactWithSuperTypesAndVarArgs, numberOfThreads);
this(PublishMode.ExactWithSuperTypes, numberOfThreads);
}
/**

View File

@ -179,8 +179,8 @@ public final class Subscription {
if (subs == null) {
subs = new ArrayList<Subscription>();
boolean isArray = type0.isArray();
if (isArray) {
// is this handler able to accept var args?
if (handlerMetadata.getVarArgClass() != null) {
varArgPossibility.lazySet(true);
}