Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting raw type before creating BeanClass #837

Merged
merged 3 commits into from
Oct 14, 2014
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

package br.com.caelum.vraptor.controller;

import br.com.caelum.vraptor.proxy.CDIProxies;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.Objects;
Expand All @@ -35,6 +37,7 @@ public DefaultControllerMethod(BeanClass controller, Method method) {
}

public static ControllerMethod instanceFor(Class<?> type, Method method) {
type = CDIProxies.extractRawTypeIfPossible(type);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indentation (tabs instead spaces). And may you can use static import here.

return new DefaultControllerMethod(new DefaultBeanClass(type), method);
}

Expand Down