[rest-gradle-plugin] 60/83: Check that the URI isn't blank using toString

Alastair McKinstry mckinstry at moszumanska.debian.org
Wed Oct 25 15:59:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository rest-gradle-plugin.

commit 1d891fabff5518355270ffb211fe6a772172c36d
Author: Noam Y. Tenne <noam at 10ne.org>
Date:   Wed Jan 27 11:16:14 2016 +0200

    Check that the URI isn't blank using toString
    
    As commented in #17
---
 src/main/groovy/org/_10ne/gradle/rest/RestTask.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/groovy/org/_10ne/gradle/rest/RestTask.groovy b/src/main/groovy/org/_10ne/gradle/rest/RestTask.groovy
index 742f078..5f6189a 100644
--- a/src/main/groovy/org/_10ne/gradle/rest/RestTask.groovy
+++ b/src/main/groovy/org/_10ne/gradle/rest/RestTask.groovy
@@ -94,7 +94,7 @@ class RestTask extends DefaultTask {
 
     @TaskAction
     void executeRequest() {
-        if (!uri || StringUtils.isBlank(uri)) {
+        if (!uri || StringUtils.isBlank(uri.toString())) {
             throw new InvalidUserDataException('No resource URI provided')
         }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/rest-gradle-plugin.git



More information about the pkg-java-commits mailing list