io.vertx.core.eventbus.impl.MessageConsumerImpl is a subclass of io.vertx.core.eventbus.impl.HandlerRegistration
Both have the same fields:
public final ContextInternal context;
public final EventBusImpl bus;
public final String address;
and
private final ContextInternal context;
private final EventBusImpl eventBus;
private final String address;
Is there a secret byte-code optimization reason?
- MessageConsumerImpl
private Queue<Message<T>> pending = new ArrayDeque<>(8);
but in unregister() it is
pending = new ArrayDeque<>();
-
protected boolean doReceive(... doesn't have @OverRide
-
Spelling
This class is optimized
-
header is simple comment, not javadoc
/* not /**
PR:
#4847
io.vertx.core.eventbus.impl.MessageConsumerImpl is a subclass of io.vertx.core.eventbus.impl.HandlerRegistration
Both have the same fields:
and
Is there a secret byte-code optimization reason?
but in unregister() it is
protected boolean doReceive(... doesn't have @OverRide
Spelling
This class is optimized
header is simple comment, not javadoc
/* not /**
PR:
#4847