Back to project page dashclock-gerrit.
The source code is released under:
Apache License
If you think the Android project dashclock-gerrit listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.plusonelabs.dashclock.gerrit.util; //from www . j a va2 s . c om public class UrlUtil { public static String appendPath(String url, String path) { String result = url; if (!result.endsWith("/") && !path.startsWith("/")) { result += "/" + path; } else if (result.endsWith("/") && path.startsWith("/")) { result += path.substring(1); } else { result += path; } return result; } }