Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
0fd6f264
Commit
0fd6f264
authored
Jun 10, 2019
by
Greg Messner
Browse files
Added static getPathWithNamespace(String, String) method (#380).
parent
28e25f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/Project.java
View file @
0fd6f264
...
...
@@ -646,4 +646,15 @@ public class Project {
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
/**
* Formats a fully qualified project path based on the provided namespace and project path.
*
* @param namespace the namespace, either a user name or group name
* @param path the project path
* @return a fully qualified project path based on the provided namespace and project path
*/
public
static
final
String
getPathWithNammespace
(
String
namespace
,
String
path
)
{
return
(
namespace
.
trim
()
+
"/"
+
path
.
trim
());
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment