ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject [12/12] git commit: remove unnecessary cast
Date Thu, 28 Aug 2014 07:04:53 GMT
remove unnecessary cast


Project: http://git-wip-us.apache.org/repos/asf/ant-easyant-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-easyant-core/commit/4366629c
Tree: http://git-wip-us.apache.org/repos/asf/ant-easyant-core/tree/4366629c
Diff: http://git-wip-us.apache.org/repos/asf/ant-easyant-core/diff/4366629c

Branch: refs/heads/master
Commit: 4366629c1c00400af170c2df64a01044042929a8
Parents: cfcd7c2
Author: Jean-Louis Boudart <jeanlouis.boudart@gmail.com>
Authored: Thu Aug 28 09:00:40 2014 +0200
Committer: Jean-Louis Boudart <jeanlouis.boudart@gmail.com>
Committed: Thu Aug 28 09:00:40 2014 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/easyant/man/EasyantOption.java         | 2 +-
 src/main/java/org/apache/easyant/tasks/AbstractEasyAntTask.java | 2 +-
 src/main/java/org/apache/easyant/tasks/GoOffline.java           | 2 +-
 src/main/java/org/apache/easyant/tasks/PluginReport.java        | 2 +-
 src/main/java/org/apache/easyant/tasks/PluginUpdateChecker.java | 2 +-
 src/main/java/org/apache/easyant/tasks/SubModule.java           | 4 ++--
 6 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-easyant-core/blob/4366629c/src/main/java/org/apache/easyant/man/EasyantOption.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/easyant/man/EasyantOption.java b/src/main/java/org/apache/easyant/man/EasyantOption.java
index 5a67844..269598f 100644
--- a/src/main/java/org/apache/easyant/man/EasyantOption.java
+++ b/src/main/java/org/apache/easyant/man/EasyantOption.java
@@ -81,7 +81,7 @@ public abstract class EasyantOption extends Option {
                 File overrideAntModule = new File(moduleDescriptor.getParent(),
                         EasyAntConstants.DEFAULT_OVERRIDE_BUILD_FILE);
 
-                PluginService pluginService = (PluginService) project
+                PluginService pluginService = project
                         .getReference(EasyAntMagicNames.PLUGIN_SERVICE_INSTANCE);
                 setEareport(pluginService.generateEasyAntReport(moduleDescriptor, optionalAntModule,
overrideAntModule));
             } catch (Exception e) {

http://git-wip-us.apache.org/repos/asf/ant-easyant-core/blob/4366629c/src/main/java/org/apache/easyant/tasks/AbstractEasyAntTask.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/easyant/tasks/AbstractEasyAntTask.java b/src/main/java/org/apache/easyant/tasks/AbstractEasyAntTask.java
index ef93f7b..8e0ca72 100644
--- a/src/main/java/org/apache/easyant/tasks/AbstractEasyAntTask.java
+++ b/src/main/java/org/apache/easyant/tasks/AbstractEasyAntTask.java
@@ -78,7 +78,7 @@ public class AbstractEasyAntTask extends Task {
     }
 
     protected EasyAntEngine getEasyAntEngine() {
-        EasyAntEngine easyAntEngine = (EasyAntEngine) getProject().getReference(EasyAntMagicNames.EASYANT_ENGINE_REF);
+        EasyAntEngine easyAntEngine = getProject().getReference(EasyAntMagicNames.EASYANT_ENGINE_REF);
         if (easyAntEngine == null) {
             easyAntEngine = new EasyAntEngine();
         }

http://git-wip-us.apache.org/repos/asf/ant-easyant-core/blob/4366629c/src/main/java/org/apache/easyant/tasks/GoOffline.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/easyant/tasks/GoOffline.java b/src/main/java/org/apache/easyant/tasks/GoOffline.java
index 21e0a5d..cbe183b 100644
--- a/src/main/java/org/apache/easyant/tasks/GoOffline.java
+++ b/src/main/java/org/apache/easyant/tasks/GoOffline.java
@@ -62,7 +62,7 @@ public class GoOffline extends AbstractEasyAntTask {
             throw new BuildException("easyantResolverName is mandatory !");
         }
 
-        PluginService pluginService = (PluginService) getProject().getReference(
+        PluginService pluginService = getProject().getReference(
                 EasyAntMagicNames.PLUGIN_SERVICE_INSTANCE);
         EasyAntReport easyAntReport;
         try {

http://git-wip-us.apache.org/repos/asf/ant-easyant-core/blob/4366629c/src/main/java/org/apache/easyant/tasks/PluginReport.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/easyant/tasks/PluginReport.java b/src/main/java/org/apache/easyant/tasks/PluginReport.java
index a2cebc6..bee1624 100644
--- a/src/main/java/org/apache/easyant/tasks/PluginReport.java
+++ b/src/main/java/org/apache/easyant/tasks/PluginReport.java
@@ -173,7 +173,7 @@ public class PluginReport extends AbstractEasyAntTask {
             throw new BuildException("destination directory should be a directory !");
         }
 
-        PluginService pluginService = (PluginService) getProject().getReference(
+        PluginService pluginService = getProject().getReference(
                 EasyAntMagicNames.PLUGIN_SERVICE_INSTANCE);
         OutputStream stream = null;
         try {

http://git-wip-us.apache.org/repos/asf/ant-easyant-core/blob/4366629c/src/main/java/org/apache/easyant/tasks/PluginUpdateChecker.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/easyant/tasks/PluginUpdateChecker.java b/src/main/java/org/apache/easyant/tasks/PluginUpdateChecker.java
index e467ac9..6e50048 100644
--- a/src/main/java/org/apache/easyant/tasks/PluginUpdateChecker.java
+++ b/src/main/java/org/apache/easyant/tasks/PluginUpdateChecker.java
@@ -41,7 +41,7 @@ public class PluginUpdateChecker extends AbstractEasyAntTask {
     private boolean pluginUpdateDetected=false;
 
     public void execute() throws BuildException {
-        PluginService pluginService = (PluginService) getProject().getReference(
+        PluginService pluginService = getProject().getReference(
                 EasyAntMagicNames.PLUGIN_SERVICE_INSTANCE);
         if (moduleIvy == null) {
             String moduleIvyProperty = getProject().getProperty(EasyAntMagicNames.EASYANT_FILE);

http://git-wip-us.apache.org/repos/asf/ant-easyant-core/blob/4366629c/src/main/java/org/apache/easyant/tasks/SubModule.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/easyant/tasks/SubModule.java b/src/main/java/org/apache/easyant/tasks/SubModule.java
index 0fd2d69..f0fd080 100644
--- a/src/main/java/org/apache/easyant/tasks/SubModule.java
+++ b/src/main/java/org/apache/easyant/tasks/SubModule.java
@@ -310,13 +310,13 @@ public class SubModule extends AbstractEasyAntTask {
 
     @SuppressWarnings("unchecked")
     private void storeExecutionTimes(Project parent, Project child) {
-        List<ExecutionResult> allresults = (List<ExecutionResult>) parent
+        List<ExecutionResult> allresults = parent
                 .getReference(BuildExecutionTimer.EXECUTION_TIMER_SUBBUILD_RESULTS);
         if (allresults == null) {
             allresults = new ArrayList<ExecutionResult>();
             parent.addReference(BuildExecutionTimer.EXECUTION_TIMER_SUBBUILD_RESULTS, allresults);
         }
-        List<ExecutionResult> childResults = (List<ExecutionResult>) child
+        List<ExecutionResult> childResults = child
                 .getReference(BuildExecutionTimer.EXECUTION_TIMER_SUBBUILD_RESULTS);
         if (childResults != null) {
             allresults.addAll(childResults);


Mime
View raw message