In HtttpAuthMethod there were comments, but not in a style that Eclipse recognizes. Change-Id: I64f55b27143f8badcefbb419d3951f2a26b87d5f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>tags/v2.0.0.201206130900-r
*/ | */ | ||||
public <T extends AnyObjectId> T update(String ref, T obj) throws Exception { | public <T extends AnyObjectId> T update(String ref, T obj) throws Exception { | ||||
if (Constants.HEAD.equals(ref)) { | if (Constants.HEAD.equals(ref)) { | ||||
// nothing | |||||
} else if ("FETCH_HEAD".equals(ref)) { | } else if ("FETCH_HEAD".equals(ref)) { | ||||
// nothing | |||||
} else if ("MERGE_HEAD".equals(ref)) { | } else if ("MERGE_HEAD".equals(ref)) { | ||||
// nothing | |||||
} else if (ref.startsWith(Constants.R_REFS)) { | } else if (ref.startsWith(Constants.R_REFS)) { | ||||
// nothing | |||||
} else | } else | ||||
ref = Constants.R_HEADS + ref; | ref = Constants.R_HEADS + ref; | ||||
*/ | */ | ||||
public BranchBuilder branch(String ref) { | public BranchBuilder branch(String ref) { | ||||
if (Constants.HEAD.equals(ref)) { | if (Constants.HEAD.equals(ref)) { | ||||
// nothing | |||||
} else if (ref.startsWith(Constants.R_REFS)) { | } else if (ref.startsWith(Constants.R_REFS)) { | ||||
// nothing | |||||
} else | } else | ||||
ref = Constants.R_HEADS + ref; | ref = Constants.R_HEADS + ref; | ||||
return new BranchBuilder(ref); | return new BranchBuilder(ref); |
* Implementors should overwrite this method if they use any kind of caches. | * Implementors should overwrite this method if they use any kind of caches. | ||||
*/ | */ | ||||
public void refresh() { | public void refresh() { | ||||
// nothing | |||||
} | } | ||||
} | } |
r.append("://"); | r.append("://"); | ||||
r.append(u.getHost()); | r.append(u.getHost()); | ||||
if (0 < u.getPort()) { | if (0 < u.getPort()) { | ||||
if (u.getPort() == 80 && "http".equals(u.getProtocol())) | |||||
/* nothing */; | |||||
else if (u.getPort() == 443 && "https".equals(u.getProtocol())) | |||||
/* nothing */; | |||||
else | |||||
if (u.getPort() == 80 && "http".equals(u.getProtocol())) { | |||||
/* nothing */ | |||||
} else if (u.getPort() == 443 | |||||
&& "https".equals(u.getProtocol())) { | |||||
/* nothing */ | |||||
} else { | |||||
r.append(':').append(u.getPort()); | r.append(':').append(u.getPort()); | ||||
} | |||||
} | } | ||||
r.append(u.getPath()); | r.append(u.getPath()); | ||||
if (u.getQuery() != null) | if (u.getQuery() != null) |