From a9805e6366b10f3a84c238d293d51123a887cf25 Mon Sep 17 00:00:00 2001 From: Cleverson Sacramento Date: Mon, 16 Jul 2012 09:01:18 -0300 Subject: [PATCH] Ajustes no código para evitar o erro de compilação do Maven --- impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/ShutdownBootstrap.java | 10 ++++++---- impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/StartupBootstrap.java | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/ShutdownBootstrap.java b/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/ShutdownBootstrap.java index 34b08d4..6c2ecfd 100644 --- a/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/ShutdownBootstrap.java +++ b/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/ShutdownBootstrap.java @@ -68,8 +68,9 @@ public class ShutdownBootstrap extends AbstractBootstrap { private static final List tempContexts = new ArrayList(); - private static final List> processors = Collections - .synchronizedList(new ArrayList>()); + @SuppressWarnings("rawtypes") + private static final List processors = Collections + .synchronizedList(new ArrayList()); /** * Observes all methods annotated with @Shutdown and create an instance of ShutdownProcessor for them @@ -105,6 +106,7 @@ public class ShutdownBootstrap extends AbstractBootstrap { /** * Before Shutdown it execute the methods annotateds with @Shutdown considering the priority order; */ + @SuppressWarnings({ "unchecked", "rawtypes" }) public synchronized static void shutdown() { getLogger().debug( getBundle("demoiselle-core-bundle").getString("executing-all", annotationClass.getSimpleName())); @@ -112,8 +114,8 @@ public class ShutdownBootstrap extends AbstractBootstrap { Collections.sort(processors); Throwable failure = null; - for (Iterator> iter = processors.iterator(); iter.hasNext();) { - ShutdownProcessor processor = iter.next(); + for (Iterator iter = processors.iterator(); iter.hasNext();) { + ShutdownProcessor processor = iter.next(); try { processor.process(); diff --git a/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/StartupBootstrap.java b/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/StartupBootstrap.java index 1e34b0d..e5a3870 100644 --- a/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/StartupBootstrap.java +++ b/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/StartupBootstrap.java @@ -67,8 +67,9 @@ public class StartupBootstrap extends AbstractBootstrap { private static final List tempContexts = new ArrayList(); - private static final List> processors = Collections - .synchronizedList(new ArrayList>()); + @SuppressWarnings("rawtypes") + private static final List processors = Collections + .synchronizedList(new ArrayList()); /** * Observes all methods annotated with @Startup and create an instance of StartupAction for them @@ -103,6 +104,7 @@ public class StartupBootstrap extends AbstractBootstrap { /** * After the deployment validation it execute the methods annotateds with @Startup considering the priority order; */ + @SuppressWarnings({ "unchecked", "rawtypes" }) public synchronized static void startup() { getLogger().debug( getBundle("demoiselle-core-bundle").getString("executing-all", annotationClass.getSimpleName())); @@ -110,8 +112,8 @@ public class StartupBootstrap extends AbstractBootstrap { Collections.sort(processors); Throwable failure = null; - for (Iterator> iter = processors.iterator(); iter.hasNext();) { - StartupProcessor processor = iter.next(); + for (Iterator iter = processors.iterator(); iter.hasNext();) { + StartupProcessor processor = iter.next(); try { processor.process(); -- libgit2 0.21.2