mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
Merge branch 'master' of github.com:eclipse/xtext
This commit is contained in:
commit
1374569e7c
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue