Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1240 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Jan 26, 2009
1 parent 4e23668 commit 4126ad8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Expand Up @@ -248,9 +248,9 @@ protected void initPrimitive()
this.primitive = Reflections.isPrimitive(getType());
}

protected boolean injectionPointsAreSerializable()
protected boolean checkInjectionPointsAreSerializable()
{
// TODO CACHE THIS!!!
// TODO CACHE THIS and rebuild on addBean
// TODO: a bit crude, don't check *all* injectionpoints, only those listed
// in the spec for passivation checks
for (AnnotatedItem<?, ?> injectionPoint : getInjectionPoints())
Expand Down
Expand Up @@ -340,7 +340,7 @@ public void preDestroy(T instance)
@Override
public boolean isSerializable()
{
return injectionPointsAreSerializable();
return checkInjectionPointsAreSerializable();
}

public InternalEjbDescriptor<T> getEjbDescriptor()
Expand Down
Expand Up @@ -195,7 +195,7 @@ public boolean isSerializable()
boolean passivatingScoped = MetaDataCache.instance().getScopeModel(scopeType).isPassivating();
if (passivatingScoped)
{
return injectionPointsAreSerializable();
return checkInjectionPointsAreSerializable();
}
return true;
}
Expand Down
Expand Up @@ -544,7 +544,7 @@ public boolean isSerializable()
}
else
{
return injectionPointsAreSerializable();
return checkInjectionPointsAreSerializable();
}
}

Expand Down

0 comments on commit 4126ad8

Please sign in to comment.