Change bus default mode to better one. Fixed varArgPossibility to reflect actual state
This commit is contained in:
parent
1287612685
commit
2247b5f24c
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user