@@ -30,7 +30,7 @@ public AbstractApi(GitLabApi gitLabApi) {
30
30
}
31
31
32
32
/**
33
- * Returns the project ID or path from the provided Integer , String, or Project instance.
33
+ * Returns the project ID or path from the provided Long , String, or Project instance.
34
34
*
35
35
* @param obj the object to determine the ID or path from
36
36
* @return the project ID or path from the provided Long, String, or Project instance
@@ -65,7 +65,7 @@ public Object getProjectIdOrPath(Object obj) throws GitLabApiException {
65
65
}
66
66
67
67
/**
68
- * Returns the group ID or path from the provided Integer , String, or Group instance.
68
+ * Returns the group ID or path from the provided Long , String, or Group instance.
69
69
*
70
70
* @param obj the object to determine the ID or path from
71
71
* @return the group ID or path from the provided Long, String, or Group instance
@@ -100,10 +100,10 @@ public Object getGroupIdOrPath(Object obj) throws GitLabApiException {
100
100
}
101
101
102
102
/**
103
- * Returns the user ID or path from the provided Integer , String, or User instance.
103
+ * Returns the user ID or path from the provided Long , String, or User instance.
104
104
*
105
105
* @param obj the object to determine the ID or username from
106
- * @return the user ID or username from the provided Integer , String, or User instance
106
+ * @return the user ID or username from the provided Long , String, or User instance
107
107
* @throws GitLabApiException if any exception occurs during execution
108
108
*/
109
109
public Object getUserIdOrUsername (Object obj ) throws GitLabApiException {
@@ -130,15 +130,15 @@ public Object getUserIdOrUsername(Object obj) throws GitLabApiException {
130
130
131
131
} else {
132
132
throw (new RuntimeException ("Cannot determine ID or username from provided " + obj .getClass ().getSimpleName () +
133
- " instance, must be Integer , String, or a User instance" ));
133
+ " instance, must be Long , String, or a User instance" ));
134
134
}
135
135
}
136
136
137
137
/**
138
- * Returns the label ID or name from the provided Integer , String, or Label instance.
138
+ * Returns the label ID or name from the provided Long , String, or Label instance.
139
139
*
140
140
* @param obj the object to determine the ID or name from
141
- * @return the user ID or name from the provided Integer , String, or Label instance
141
+ * @return the user ID or name from the provided Long , String, or Label instance
142
142
* @throws GitLabApiException if any exception occurs during execution
143
143
*/
144
144
public Object getLabelIdOrName (Object obj ) throws GitLabApiException {
@@ -165,7 +165,7 @@ public Object getLabelIdOrName(Object obj) throws GitLabApiException {
165
165
166
166
} else {
167
167
throw (new RuntimeException ("Cannot determine ID or name from provided " + obj .getClass ().getSimpleName () +
168
- " instance, must be Integer , String, or a Label instance" ));
168
+ " instance, must be Long , String, or a Label instance" ));
169
169
}
170
170
}
171
171
0 commit comments