Skip to content

Commit

Permalink
Working on the documentation. Related to #20
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Alves Vieira committed May 2, 2013
1 parent 3876eb4 commit f7479b3
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 14 deletions.
4 changes: 1 addition & 3 deletions src/java/main/br/ufpe/cin/groundhog/extractor/Formats.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ private Formats() {

/**
* Tell if the given extension is supported
*
* @param extension
* the given extension (e.g. zip, rar)
* @param extension the given extension String (e.g. zip, rar)
*/
public boolean isCompatible(String extension) {
for (String ext : extensions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
import com.github.junrar.exception.RarException;
import com.github.junrar.rarfile.FileHeader;

// Adapted from: https://github.com/edmund-wagner/junrar/blob/6f32323c983015d96c64084418793853f514b519/testutil/src/main/java/de/innosystec/unrar/testutil/ExtractArchive.java
// Original author: edmund wagner
/**
*
* @author gustavopinto, rodrigoalvesvieira
* Adapted from: https://github.com/edmund-wagner/junrar/blob/6f32323c983015d96c64084418793853f514b519/testutil/src/main/java/de/innosystec/unrar/testutil/ExtractArchive.java
* Original author: Edmund Wagner
*
*/
public class RarUncompressor {
private static Log logger = LogFactory.getLog(RarUncompressor.class
.getName());
Expand Down
7 changes: 1 addition & 6 deletions src/java/main/br/ufpe/cin/groundhog/http/HttpException.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
import br.ufpe.cin.groundhog.GroundhogException;

public class HttpException extends GroundhogException {

/**
*
*/
private static final long serialVersionUID = 5824357504573919990L;

public HttpException(String msg) {
Expand All @@ -20,5 +16,4 @@ public HttpException(Throwable cause) {
public HttpException(String msg, Throwable cause) {
super(msg, cause);
}

}
}
2 changes: 1 addition & 1 deletion src/java/main/br/ufpe/cin/groundhog/http/HttpModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ protected void configure() {
bind(Requests.class).in(Singleton.class);
}

}
}
5 changes: 5 additions & 0 deletions src/java/main/br/ufpe/cin/groundhog/http/Requests.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public String encodeURL(String s) {
}
}

/**
*
* @param s a String representing an URL
* @return an UTF-8 decoded String derivated from the given URL
*/
public String decodeURL(String s) {
try {
return URLDecoder.decode(s, "UTF-8");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import br.ufpe.cin.groundhog.Project;
import br.ufpe.cin.groundhog.SCM;
Expand Down
6 changes: 5 additions & 1 deletion src/java/main/br/ufpe/cin/groundhog/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

import com.google.common.io.Files;

/**
*
* @author fjsj, gustavopinto, rodrigoalvesvieira
*/
public class FileUtil {
private static FileUtil instance;
private List<File> createdTempDirs;
Expand All @@ -28,7 +32,7 @@ private FileUtil() {

/**
*
* @return the created temporary directory
* @return A File object representing the created temporary directory
*/
public synchronized File createTempDir() {
try {
Expand Down

0 comments on commit f7479b3

Please sign in to comment.