Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Closes the InputStream after we're done with it.
  • Loading branch information
Edwin Shin committed Apr 12, 2013
1 parent 09fb9a8 commit ebf0a6d
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -9,6 +9,7 @@
import static org.slf4j.LoggerFactory.getLogger;

import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.io.Writer;
import java.util.Arrays;
Expand Down Expand Up @@ -70,9 +71,11 @@ public class LegacyMethod {

static {
try {
FEDORA_TYPES
.load(LegacyMethod.class
.getResourceAsStream("/org/fcrepo/messaging/legacy/map.properties"));
InputStream is =
LegacyMethod.class
.getResourceAsStream("/org/fcrepo/messaging/legacy/map.properties");
FEDORA_TYPES.load(is);
is.close();
} catch (IOException e) { // it's in the jar.
e.printStackTrace();
}
Expand Down

0 comments on commit ebf0a6d

Please sign in to comment.