Skip to content

Commit

Permalink
Finishing writing Javadocs for the br.ufpe.cin.groundhog.search packa…
Browse files Browse the repository at this point in the history
…ge. Related to #20.
  • Loading branch information
Rodrigo Alves Vieira committed May 4, 2013
1 parent c393f93 commit fb4b115
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public SearchGitHub(Requests requests) {
}

/**
*
* Creates and returns a JSON object built by the contents of the given JSON document URL
* @param urlStr the URL of the JSON document
* @return a JSON object created filled with the content of the given JSON document
* @throws IOException
Expand Down
10 changes: 6 additions & 4 deletions src/java/main/br/ufpe/cin/groundhog/search/SearchGoogleCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public SearchGoogleCode(Requests requests) {
}

/**
*
* Fetches and returns the checkout command String for the project
* @param html the HTML content of the page to be parsed
* @return the checkout command within the given HTML page
* @throws IOException
Expand All @@ -51,6 +51,11 @@ private String parseCheckoutCommand(String html) throws IOException {
}
}

/**
* Sets the checkout command of the project according to its SCM tool
* @param command the checkout command String
* @param project the project to which the checkout must be applied
*/
private void setCheckoutCommandToProject(String command, Project project) {
if (command.startsWith("svn")) {
String url = command.split(" ")[2];
Expand All @@ -71,9 +76,6 @@ private void setCheckoutCommandToProject(String command, Project project) {
}
}

/**
* Performs the search in the Google Code forge
*/
public List<Project> getProjects(String term, int page) throws SearchException {
try {
List<Project> projects = new ArrayList<Project>();
Expand Down

0 comments on commit fb4b115

Please sign in to comment.