[maven-debian-helper] 02/02: Minor style changes
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Sun Dec 1 23:26:17 UTC 2013
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository maven-debian-helper.
commit 784d0677913665921b3c7ea106351f5b82f34d34
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Mon Dec 2 00:25:58 2013 +0100
Minor style changes
---
.../src/main/java/org/debian/maven/packager/DebianDependencies.java | 6 +++---
.../src/main/java/org/debian/maven/packager/DebianDependency.java | 4 +---
.../org/debian/maven/packager/util/IgnoreDependencyQuestions.java | 2 +-
3 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/maven-packager-utils/src/main/java/org/debian/maven/packager/DebianDependencies.java b/maven-packager-utils/src/main/java/org/debian/maven/packager/DebianDependencies.java
index ad1f335..2ad4d85 100644
--- a/maven-packager-utils/src/main/java/org/debian/maven/packager/DebianDependencies.java
+++ b/maven-packager-utils/src/main/java/org/debian/maven/packager/DebianDependencies.java
@@ -13,7 +13,7 @@ public class DebianDependencies {
public final EnumMap<Type, Set<DebianDependency>> deps = new EnumMap<Type, Set<DebianDependency>>(Type.class);
public DebianDependencies() {
- for(Type type : Type.values()) {
+ for (Type type : Type.values()) {
deps.put(type, new TreeSet<DebianDependency>());
}
}
@@ -22,7 +22,7 @@ public class DebianDependencies {
this.deps.get(type).add(dependency);
}
- public void add (Type type, Collection<DebianDependency> dependencies) {
+ public void add(Type type, Collection<DebianDependency> dependencies) {
get(type).addAll(dependencies);
}
@@ -31,7 +31,7 @@ public class DebianDependencies {
}
public void putInProperties(Properties depVars) {
- for(Type type : Type.values()) {
+ for (Type type : Type.values()) {
depVars.put(type.substvarName, Strings.join(deps.get(type), ", "));
}
}
diff --git a/maven-packager-utils/src/main/java/org/debian/maven/packager/DebianDependency.java b/maven-packager-utils/src/main/java/org/debian/maven/packager/DebianDependency.java
index 0ee1e9e..2060d7e 100644
--- a/maven-packager-utils/src/main/java/org/debian/maven/packager/DebianDependency.java
+++ b/maven-packager-utils/src/main/java/org/debian/maven/packager/DebianDependency.java
@@ -27,7 +27,7 @@ public class DebianDependency implements Comparable<DebianDependency> {
/**
* Creates a dependency on the specified package.
*
- * @param packageName the name of the Debian package
+ * @param packageName the name of the Debian package
* @param minimumVersion the minimum version required, empty if none
* @throws IllegalArgumentException if the package name or the minimum version is not valid
*/
@@ -69,8 +69,6 @@ public class DebianDependency implements Comparable<DebianDependency> {
* <pre>
* foo (>= 1.0)
* </pre>
- *
- * @return
*/
public String toString() {
return minimumVersion.isEmpty() ? packageName : packageName + " (>= " + minimumVersion + ")";
diff --git a/maven-packager-utils/src/main/java/org/debian/maven/packager/util/IgnoreDependencyQuestions.java b/maven-packager-utils/src/main/java/org/debian/maven/packager/util/IgnoreDependencyQuestions.java
index 2371814..2c34ae7 100644
--- a/maven-packager-utils/src/main/java/org/debian/maven/packager/util/IgnoreDependencyQuestions.java
+++ b/maven-packager-utils/src/main/java/org/debian/maven/packager/util/IgnoreDependencyQuestions.java
@@ -159,7 +159,7 @@ public class IgnoreDependencyQuestions {
if (!interactive || notIgnoredDependencies.contains(dependency)) {
return false;
}
- String question = "\n" + "In " + sourcePomLoc + ":" + message + " " + dependency;
+ String question = "\n" + "In " + sourcePomLoc + ": " + message + " " + dependency;
boolean ignore = new YesNoQuestion(question, defaultToIgnore).ask();
if (!ignore) {
notIgnoredDependencies.add(dependency);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-debian-helper.git
More information about the pkg-java-commits
mailing list