Merge branch 'master' of github.com:eclipse/xtext

This commit is contained in:
Miro Spönemann 2015-07-14 17:17:04 +02:00
commit 1374569e7c

View file

@ -48,11 +48,12 @@ public abstract class MethodBasedModule implements Module {
Type key = getKeyType();
if (isClassBinding()) {
Class<?> value = (Class<?>) invokeMethod();
if (LOGGER.isTraceEnabled())
LOGGER.trace("Adding binding from " + key + " to " + value.getName()
+ ". Declaring Method was '" + getMethod().toGenericString() + "' in Module "
+ this.getClass().getName());
if (value != null && !Void.class.equals(value)) {
if (LOGGER.isTraceEnabled()) {
LOGGER.trace("Adding binding from " + key + " to " + value.getName()
+ ". Declaring Method was '" + getMethod().toGenericString() + "' in Module "
+ this.getClass().getName());
}
LinkedBindingBuilder<Object> bind = binder.bind((Key<Object>)Key.get(key));
if (!key.equals(value)) {
bindToClass(bind, value);