Commit 0fe7782c963f254e6ff4e9e34181a7e48da27ce9
1 parent
1a7edf22
Exists in
master
Ajuste nos Generics
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/AsbratctLifecycleBootstrap.java
| ... | ... | @@ -64,8 +64,9 @@ public abstract class AsbratctLifecycleBootstrap<A extends Annotation> extends A |
| 64 | 64 | |
| 65 | 65 | private Class<A> annotationClass; |
| 66 | 66 | |
| 67 | - private final List<AnnotatedMethodProcessor<?>> processors = Collections | |
| 68 | - .synchronizedList(new ArrayList<AnnotatedMethodProcessor<?>>()); | |
| 67 | + @SuppressWarnings("rawtypes") | |
| 68 | + private final List<AnnotatedMethodProcessor> processors = Collections | |
| 69 | + .synchronizedList(new ArrayList<AnnotatedMethodProcessor>()); | |
| 69 | 70 | |
| 70 | 71 | private final List<CustomContext> tempContexts = new ArrayList<CustomContext>(); |
| 71 | 72 | |
| ... | ... | @@ -106,6 +107,7 @@ public abstract class AsbratctLifecycleBootstrap<A extends Annotation> extends A |
| 106 | 107 | |
| 107 | 108 | private boolean x = true; |
| 108 | 109 | |
| 110 | + @SuppressWarnings({ "unchecked", "rawtypes" }) | |
| 109 | 111 | protected synchronized void proccessEvent(final ApplicationLifecycleEvent event) { |
| 110 | 112 | getLogger().debug( |
| 111 | 113 | getBundle("demoiselle-core-bundle").getString("executing-all", annotationClass.getSimpleName())); |
| ... | ... | @@ -121,7 +123,7 @@ public abstract class AsbratctLifecycleBootstrap<A extends Annotation> extends A |
| 121 | 123 | x = false; |
| 122 | 124 | } |
| 123 | 125 | |
| 124 | - for (Iterator<AnnotatedMethodProcessor<?>> iter = processors.iterator(); iter.hasNext();) { | |
| 126 | + for (Iterator<AnnotatedMethodProcessor> iter = processors.iterator(); iter.hasNext();) { | |
| 125 | 127 | AnnotatedMethodProcessor<?> processor = iter.next(); |
| 126 | 128 | |
| 127 | 129 | try { | ... | ... |