@@ -33,14 +33,14 @@ public AbstractApi(GitLabApi gitLabApi) {
3333 * Returns the project ID or path from the provided Integer, String, or Project instance.
3434 *
3535 * @param obj the object to determine the ID or path from
36- * @return the project ID or path from the provided Integer , String, or Project instance
36+ * @return the project ID or path from the provided Long , String, or Project instance
3737 * @throws GitLabApiException if any exception occurs during execution
3838 */
3939 public Object getProjectIdOrPath (Object obj ) throws GitLabApiException {
4040
4141 if (obj == null ) {
4242 throw (new RuntimeException ("Cannot determine ID or path from null object" ));
43- } else if (obj instanceof Integer ) {
43+ } else if (obj instanceof Long ) {
4444 return (obj );
4545 } else if (obj instanceof String ) {
4646 return (urlEncode (((String ) obj ).trim ()));
@@ -60,22 +60,22 @@ public Object getProjectIdOrPath(Object obj) throws GitLabApiException {
6060
6161 } else {
6262 throw (new RuntimeException ("Cannot determine ID or path from provided " + obj .getClass ().getSimpleName () +
63- " instance, must be Integer , String, or a Project instance" ));
63+ " instance, must be Long , String, or a Project instance" ));
6464 }
6565 }
6666
6767 /**
6868 * Returns the group ID or path from the provided Integer, String, or Group instance.
6969 *
7070 * @param obj the object to determine the ID or path from
71- * @return the group ID or path from the provided Integer , String, or Group instance
71+ * @return the group ID or path from the provided Long , String, or Group instance
7272 * @throws GitLabApiException if any exception occurs during execution
7373 */
7474 public Object getGroupIdOrPath (Object obj ) throws GitLabApiException {
7575
7676 if (obj == null ) {
7777 throw (new RuntimeException ("Cannot determine ID or path from null object" ));
78- } else if (obj instanceof Integer ) {
78+ } else if (obj instanceof Long ) {
7979 return (obj );
8080 } else if (obj instanceof String ) {
8181 return (urlEncode (((String ) obj ).trim ()));
@@ -95,7 +95,7 @@ public Object getGroupIdOrPath(Object obj) throws GitLabApiException {
9595
9696 } else {
9797 throw (new RuntimeException ("Cannot determine ID or path from provided " + obj .getClass ().getSimpleName () +
98- " instance, must be Integer , String, or a Group instance" ));
98+ " instance, must be Long , String, or a Group instance" ));
9999 }
100100 }
101101
@@ -110,7 +110,7 @@ public Object getUserIdOrUsername(Object obj) throws GitLabApiException {
110110
111111 if (obj == null ) {
112112 throw (new RuntimeException ("Cannot determine ID or username from null object" ));
113- } else if (obj instanceof Integer ) {
113+ } else if (obj instanceof Long ) {
114114 return (obj );
115115 } else if (obj instanceof String ) {
116116 return (urlEncode (((String ) obj ).trim ()));
@@ -145,7 +145,7 @@ public Object getLabelIdOrName(Object obj) throws GitLabApiException {
145145
146146 if (obj == null ) {
147147 throw (new RuntimeException ("Cannot determine ID or name from null object" ));
148- } else if (obj instanceof Integer ) {
148+ } else if (obj instanceof Long ) {
149149 return (obj );
150150 } else if (obj instanceof String ) {
151151 return (urlEncode (((String ) obj ).trim ()));
0 commit comments