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

WELD-2225 stick to new CDI 2.0-EDR2 SE API. #1463

Closed
wants to merge 1 commit into from

Conversation

tremes
Copy link
Contributor

@tremes tremes commented Aug 24, 2016

No description provided.

Object[] constructorParams = new Object[] {};
for (Class<? extends Extension> extensionClass : extensionClasses) {
try {
Extension extension = extensionClass.getDeclaredConstructor(new Class[] {}).newInstance(constructorParams);
Copy link
Member

Choose a reason for hiding this comment

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

Please use org.jboss.weld.environment.se.SecurityActions.newInstance(Class<T>) instead..

@tremes tremes force-pushed the WELD-2225 branch 2 times, most recently from 390a2c7 to e0f6e32 Compare August 25, 2016 06:00

@Override
public Weld addExtensions(Class<? extends Extension>... extensionClasses) {
Object[] constructorParams = new Object[] {};
Copy link
Member

Choose a reason for hiding this comment

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

This variable is useless in most cases. I would rather pass new Object[] {} to log method directly.

@mkouba
Copy link
Member

mkouba commented Aug 25, 2016

Merged, thanks!

@mkouba mkouba closed this Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants