maven tells me i don't need these exception handlers ...

This commit is contained in:
Vincent Batts 2012-10-31 14:45:00 -04:00
parent 1d13db07c5
commit 8e413fa985
4 changed files with 52 additions and 14 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
*~
.*.swp
Session.vim
build/
dist/

47
pom.xml Normal file
View file

@ -0,0 +1,47 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.redhat.trie</groupId>
<artifactId>trie</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.44</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<mainClass>com.hashbangbash.trie.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>

View file

@ -71,12 +71,7 @@ public class App {
public static List<String> hydrateFromBytes(byte[] compressedBlob) {
try {
return Util.hydrateContentPackage(compressedBlob);
} catch (PayloadException ex) {
System.out.println(ex);
}
return null;
return Util.hydrateContentPackage(compressedBlob);
}
public static List<String> hydrateFromFile(String filename) {

View file

@ -98,14 +98,9 @@ public class Util {
*
* Rename it for tracking, and to be clear about what is happening
*/
public static List<String> hydrateContentPackage(byte[] compressedBlob)
throws PayloadException {
try {
PathTree pt = new PathTree(compressedBlob);
return pt.toList();
} catch (Throwable t) {
throw t;
}
public static List<String> hydrateContentPackage(byte[] compressedBlob) {
PathTree pt = new PathTree(compressedBlob);
return pt.toList();
}