Skip to content

Commit

Permalink
Merge pull request #1020 from tomtit/issue942_2
Browse files Browse the repository at this point in the history
Fixes #942: Path validation has been fixed.
  • Loading branch information
fehguy committed Apr 30, 2015
2 parents 6c17c67 + ef40d66 commit 96c46cf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import javax.ws.rs.HttpMethod;
import javax.ws.rs.Produces;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -316,7 +317,7 @@ protected Set<String> extractTags(Api api) {
}

String getPath(javax.ws.rs.Path classLevelPath, javax.ws.rs.Path methodLevelPath, String parentPath) {
if (classLevelPath == null && methodLevelPath == null && parentPath == null) {
if (classLevelPath == null && methodLevelPath == null && StringUtils.isEmpty(parentPath)) {
return null;
}
StringBuilder b = new StringBuilder();
Expand Down

0 comments on commit 96c46cf

Please sign in to comment.