Skip to content

Commit

Permalink
Minor feedback cleanup.
Browse files Browse the repository at this point in the history
Remove unnecessary artifact cast and use spacing similar to area of code
for runtimebits.
  • Loading branch information
hazendaz committed Dec 29, 2014
1 parent c350c3e commit 433830a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,12 @@ net.sf.launch4j.config.ClassPath toL4j(Set<Artifact> dependencies, List<Artifact
dependencies.addAll(runtimeDependencies);

for (Artifact dependency : dependencies) {
Artifact dep = (Artifact) dependency;
if (Artifact.SCOPE_COMPILE.equals(dep.getScope()) ||
Artifact.SCOPE_RUNTIME.equals(dep.getScope())) {
if (Artifact.SCOPE_COMPILE.equals(dependency.getScope()) ||
Artifact.SCOPE_RUNTIME.equals(dependency.getScope())) {

String depFilename;
depFilename = dep.getFile().getName();
// System.out.println("dep = " + depFilename);
depFilename = dependency.getFile().getName();
// System.out.println("dependency = " + depFilename);
cp.add(jarLocation + depFilename);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/akathist/maven/plugins/launch4j/Jre.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public class Jre {
* Possible values: 32, 64, 64/32 - it will fallback to default value if different option was used
* Default value is: 64/32
*/
@Parameter(defaultValue="64/32")
@Parameter(defaultValue="64/32")
String runtimeBits;

net.sf.launch4j.config.Jre toL4j() {
Expand Down

0 comments on commit 433830a

Please sign in to comment.