mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
Fix bug 380403
https://bugs.eclipse.org/bugs/show_bug.cgi?id=380403 Signed-off-by: Dietmar Stoll <eclipse.etc@dietmar-stoll.de>
This commit is contained in:
parent
85f20f2bc2
commit
3df3684547
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