1
1
package org .gitlab4j .api ;
2
2
3
3
import java .util .List ;
4
+
4
5
import javax .ws .rs .core .Form ;
5
6
import javax .ws .rs .core .GenericType ;
6
7
import javax .ws .rs .core .Response ;
8
+
7
9
import org .gitlab4j .api .models .LicenseTemplate ;
8
10
9
11
/**
@@ -24,8 +26,7 @@ public LicensesApi(GitLabApi gitLabApi) {
24
26
* @throws GitLabApiException if any exception occurs
25
27
*/
26
28
public List <LicenseTemplate > getAllLicenseTemplates () throws GitLabApiException {
27
- GitLabApiForm formData = null ;
28
- Response response = get (Response .Status .OK , formData .asMap (), "licenses" );
29
+ Response response = get (Response .Status .OK , null , "licenses" );
29
30
return (response .readEntity (new GenericType <List <LicenseTemplate >>() {}));
30
31
}
31
32
@@ -53,8 +54,7 @@ public List<LicenseTemplate> getPopularLicenseTemplates() throws GitLabApiExcept
53
54
* @throws GitLabApiException if any exception occurs
54
55
*/
55
56
public LicenseTemplate getSingleLicenseTemplate (String key ) throws GitLabApiException {
56
- GitLabApiForm formData = null ;
57
- Response response = get (Response .Status .OK , formData .asMap (), "licenses" , key );
57
+ Response response = get (Response .Status .OK , null , "licenses" , key );
58
58
return (response .readEntity (LicenseTemplate .class ));
59
59
}
60
60
}
0 commit comments