Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 557ae41

Browse filesBrowse files
committed
Not important
1 parent a31395e commit 557ae41
Copy full SHA for 557ae41

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎src/main/java/org/kohsuke/github/Requester.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/Requester.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
package org.kohsuke.github;
2525

2626
import com.fasterxml.jackson.databind.JsonMappingException;
27+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2728
import org.apache.commons.io.IOUtils;
2829

2930
import java.io.FileNotFoundException;
@@ -138,7 +139,7 @@ public Requester with(String key, Enum e) {
138139
// by convention Java constant names are upper cases, but github uses
139140
// lower-case constants. GitHub also uses '-', which in Java we always
140141
// replace by '_'
141-
return with(key, e.toString().toLowerCase(Locale.ENGLISH).replace('_','-'));
142+
return with(key, e.toString().toLowerCase(Locale.ENGLISH).replace('_', '-'));
142143
}
143144

144145
public Requester with(String key, String value) {
@@ -216,9 +217,10 @@ public <T> T to(String tailApiUrl, T existingInstance) throws IOException {
216217
*/
217218
@Deprecated
218219
public <T> T to(String tailApiUrl, Class<T> type, String method) throws IOException {
219-
return method(method).to(tailApiUrl,type);
220+
return method(method).to(tailApiUrl, type);
220221
}
221222

223+
@SuppressFBWarnings("SBSC_USE_STRINGBUFFER_CONCATENATION")
222224
private <T> T _to(String tailApiUrl, Class<T> type, T instance) throws IOException {
223225
if (METHODS_WITHOUT_BODY.contains(method) && !args.isEmpty()) {
224226
boolean questionMarkFound = tailApiUrl.indexOf('?') != -1;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.