The following commit has been merged in the master branch:
commit 0a4b256cce6bca2611dba0542d0035b1b8cfa89b
Author: Emmanuel Bourg <[email protected]>
Date: Tue Jun 11 10:24:59 2013 +0200
Removed unnecessary casts
diff --git
a/debian-maven-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java
b/debian-maven-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java
index b5104df..6dcb9fb 100644
---
a/debian-maven-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java
+++
b/debian-maven-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java
@@ -547,8 +547,7 @@ public class SysInstallMojo extends AbstractMojo {
* command for creating the relative symlink
*/
private String[] linkCommand(String source, String dest) {
- String[] command = {"ln", "-s", source, dest};
- return command;
+ return new String[]{"ln", "-s", source, dest};
}
private void mkdir(String path) throws IOException {
@@ -712,7 +711,7 @@ public class SysInstallMojo extends AbstractMojo {
params.add(cleanedPomSrcPath());
params.add(cleanedPomPropertiesSrcPath());
- POMCleaner.main((String[]) params.toArray(new String[params.size()]));
+ POMCleaner.main(params.toArray(new String[params.size()]));
Properties pomProperties = new Properties();
try {
@@ -731,7 +730,7 @@ public class SysInstallMojo extends AbstractMojo {
params.add(debianPomSrcPath());
params.add(debianPomPropertiesSrcPath());
- POMCleaner.main((String[]) params.toArray(new
String[params.size()]));
+ POMCleaner.main(params.toArray(new String[params.size()]));
}
}
--
UNNAMED PROJECT
_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits