Skip to content

Commit

Permalink
Cleanup excess of code from old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanouii authored and manovotn committed Feb 28, 2023
1 parent 1a9921d commit 5e3a5e1
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*/
package org.jboss.cdi.tck.tests.full.extensions.lifecycle.processBeanAttributes.specialization;

import java.lang.reflect.Type;
import java.util.Set;

import jakarta.enterprise.event.Observes;
import jakarta.enterprise.inject.spi.BeanAttributes;
import jakarta.enterprise.inject.spi.Extension;
Expand All @@ -31,17 +28,11 @@ public class VerifyingExtension implements Extension {
private BeanAttributes<Charlie> charlie;

public void alpha(@Observes ProcessBeanAttributes<Alpha> event) {
Set<Type> types = event.getBeanAttributes().getTypes();
if (!types.contains(Bravo.class) && !types.contains(Charlie.class)) {
alpha = event.getBeanAttributes();
}
alpha = event.getBeanAttributes();
}

public void bravo(@Observes ProcessBeanAttributes<Bravo> event) {
Set<Type> types = event.getBeanAttributes().getTypes();
if (!types.contains(Charlie.class)) {
bravo = event.getBeanAttributes();
}
bravo = event.getBeanAttributes();
}

public void charlie(@Observes ProcessBeanAttributes<Charlie> event) {
Expand Down

0 comments on commit 5e3a5e1

Please sign in to comment.