Skip to content

Commit 62cefd5

Browse files
Migrate to httpclient5
* Migrate imports, classes and methods * Reduce usage of deprecated classes and methods * Minor code cleanup
1 parent ad1b077 commit 62cefd5

27 files changed

+1699
-1661
lines changed

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ THE SOFTWARE.
8888

8989
<dependencies>
9090
<dependency>
91-
<groupId>org.jenkins-ci.plugins</groupId>
92-
<artifactId>apache-httpcomponents-client-4-api</artifactId>
91+
<groupId>io.jenkins.plugins</groupId>
92+
<artifactId>apache-httpcomponents-client-5-api</artifactId>
9393
</dependency>
9494

9595
<dependency>

src/main/java/jenkins/plugins/http_request/HttpMode.java

+15-15
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
* @author Janario Oliveira
77
*/
88
public enum HttpMode {
9-
GET,
10-
HEAD,
11-
POST,
12-
PUT,
13-
DELETE,
14-
OPTIONS,
15-
PATCH,
16-
MKCOL;
9+
GET,
10+
HEAD,
11+
POST,
12+
PUT,
13+
DELETE,
14+
OPTIONS,
15+
PATCH,
16+
MKCOL;
1717

18-
public static ListBoxModel getFillItems() {
19-
ListBoxModel items = new ListBoxModel();
20-
for (HttpMode httpMode : values()) {
21-
items.add(httpMode.name());
22-
}
23-
return items;
24-
}
18+
public static ListBoxModel getFillItems() {
19+
ListBoxModel items = new ListBoxModel();
20+
for (HttpMode httpMode : values()) {
21+
items.add(httpMode.name());
22+
}
23+
return items;
24+
}
2525
}

0 commit comments

Comments
 (0)