[gradle-debian-helper] 01/01: MavenPom.java: getMavenDependency*() never returns null
Kai-Chung Yan
seamlik-guest at moszumanska.debian.org
Mon Oct 31 12:00:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
seamlik-guest pushed a commit to branch master
in repository gradle-debian-helper.
commit 3b135fa8e47746a09f332b6d6b1afc52df5a59c0
Author: Kai-Chung Yan (殷啟聰) <seamlikok at gmail.com>
Date: Mon Oct 31 19:59:38 2016 +0800
MavenPom.java: getMavenDependency*() never returns null
---
.../src/main/java/org/debian/gradle/tasks/MavenPom.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gradle-helper-plugin/src/main/java/org/debian/gradle/tasks/MavenPom.java b/gradle-helper-plugin/src/main/java/org/debian/gradle/tasks/MavenPom.java
index 234c90c..2ba783d 100644
--- a/gradle-helper-plugin/src/main/java/org/debian/gradle/tasks/MavenPom.java
+++ b/gradle-helper-plugin/src/main/java/org/debian/gradle/tasks/MavenPom.java
@@ -43,7 +43,7 @@ public class MavenPom extends DefaultTask {
.getMethod("getScope")
.invoke(dependency));
} finally {
- return result;
+ return (result == null) ? "" : result;
}
}
@@ -54,7 +54,7 @@ public class MavenPom extends DefaultTask {
.getMethod("getGroupId")
.invoke(dependency));
} finally {
- return result;
+ return (result == null) ? "" : result;
}
}
@@ -65,7 +65,7 @@ public class MavenPom extends DefaultTask {
.getMethod("getArtifactId")
.invoke(dependency));
} finally {
- return result;
+ return (result == null) ? "" : result;
}
}
@@ -76,7 +76,7 @@ public class MavenPom extends DefaultTask {
.getMethod("getVersion")
.invoke(dependency));
} finally {
- return result;
+ return (result == null) ? "" : result;
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/gradle-debian-helper.git
More information about the pkg-java-commits
mailing list