Skip to content

Commit

Permalink
WELD-78
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Jan 11, 2010
1 parent c761252 commit 13f1af4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion impl/src/main/java/org/jboss/weld/bean/InterceptorImpl.java
Expand Up @@ -42,11 +42,12 @@
*/
public class InterceptorImpl<T> extends ManagedBean<T> implements Interceptor<T>
{

private final InterceptorClassMetadata interceptorClassMetadata;

private final Set<Annotation> interceptorBindingTypes;

private boolean serializable;
private final boolean serializable;

protected InterceptorImpl(WeldClass<T> type, BeanManagerImpl manager)
{
Expand Down
5 changes: 1 addition & 4 deletions impl/src/main/java/org/jboss/weld/bean/ProducerMethod.java
Expand Up @@ -55,11 +55,8 @@ public class ProducerMethod<X, T> extends AbstractProducerBean<X, T, Method>
{
// The underlying method
private MethodInjectionPoint<T, X> method;

private DisposalMethod<X, ?> disposalMethodBean;

private ProducerMethod<?, ?> specializedBean;

private final String id;

/**
Expand Down Expand Up @@ -164,7 +161,7 @@ else if (getDeclaringBean() instanceof SessionBean<?>)
// TODO use annotated item?
for (Type type : getDeclaringBean().getTypes())
{
if (type instanceof Class)
if (type instanceof Class<?>)
{
if (SecureReflections.methodExists((Class<?>) type, getWeldAnnotated().getName(), getWeldAnnotated().getParameterTypesAsArray()))
{
Expand Down
4 changes: 3 additions & 1 deletion impl/src/main/java/org/jboss/weld/bean/SessionBean.java
Expand Up @@ -392,7 +392,7 @@ public boolean isMethodExistsOnTypes(WeldMethod<?, ?> method)
{
for (Type type : getTypes())
{
if (type instanceof Class)
if (type instanceof Class<?>)
{
for (Method m : SecureReflections.getMethods((Class<?>) type))
{
Expand Down Expand Up @@ -427,7 +427,9 @@ protected void registerInterceptors()
{
InterceptionModel<Class<?>, SerializableContextual<javax.enterprise.inject.spi.Interceptor<?>, ?>> model = beanManager.getCdiInterceptorsRegistry().getInterceptionModel(ejbDescriptor.getBeanClass());
if (model != null)
{
getManager().getServices().get(EjbServices.class).registerInterceptors(getEjbDescriptor().delegate(), new InterceptorBindingsAdapter(model));
}
}
}

0 comments on commit 13f1af4

Please sign in to comment.