From f81513284cf7aa4a98c601d6877b7188e915967c Mon Sep 17 00:00:00 2001 From: Jacek Malolepszy Date: Fri, 25 May 2012 11:58:38 +0000 Subject: [PATCH] Add functionality change billed hours (codestyle) --- src/main/java/pl/com/it_crowd/youtrack/api/YoutrackAPI.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/pl/com/it_crowd/youtrack/api/YoutrackAPI.java b/src/main/java/pl/com/it_crowd/youtrack/api/YoutrackAPI.java index bf4c882..b727810 100644 --- a/src/main/java/pl/com/it_crowd/youtrack/api/YoutrackAPI.java +++ b/src/main/java/pl/com/it_crowd/youtrack/api/YoutrackAPI.java @@ -14,9 +14,7 @@ import org.apache.http.auth.AuthenticationException; import pl.com.it_crowd.youtrack.api.rest.Issues; import javax.xml.bind.JAXBException; -import java.io.BufferedReader; import java.io.IOException; -import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.security.GeneralSecurityException; @@ -93,7 +91,8 @@ public class YoutrackAPI { return result; } - public void setTotalBilledHours(String issueSignature, Long billedHours) { + public void setTotalBilledHours(String issueSignature, Long billedHours) + { String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute"; ArrayList requestParameters = new ArrayList(); requestParameters.add(new NameValuePair("command", "Billed hours " + billedHours)); @@ -108,7 +107,8 @@ public class YoutrackAPI { } } - public void setTotalIssueDuration(String issueSignature, Long issueTotalDuration){ + public void setTotalIssueDuration(String issueSignature, Long issueTotalDuration) + { String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute"; ArrayList requestParameters = new ArrayList(); requestParameters.add(new NameValuePair("command", "Real completion time " + issueTotalDuration)); -- libgit2 0.24.0