diff --git a/src/java/main/br/ufpe/cin/groundhog/search/SearchGitHub.java b/src/java/main/br/ufpe/cin/groundhog/search/SearchGitHub.java index ba14f50..5f54eed 100644 --- a/src/java/main/br/ufpe/cin/groundhog/search/SearchGitHub.java +++ b/src/java/main/br/ufpe/cin/groundhog/search/SearchGitHub.java @@ -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 diff --git a/src/java/main/br/ufpe/cin/groundhog/search/SearchGoogleCode.java b/src/java/main/br/ufpe/cin/groundhog/search/SearchGoogleCode.java index 86175ab..26cde51 100644 --- a/src/java/main/br/ufpe/cin/groundhog/search/SearchGoogleCode.java +++ b/src/java/main/br/ufpe/cin/groundhog/search/SearchGoogleCode.java @@ -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 @@ -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]; @@ -71,9 +76,6 @@ private void setCheckoutCommandToProject(String command, Project project) { } } - /** - * Performs the search in the Google Code forge - */ public List getProjects(String term, int page) throws SearchException { try { List projects = new ArrayList();