Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
FIX: redirect http code was not being set, changes parameter to call …
Browse files Browse the repository at this point in the history
…to LogManager.getLogger
  • Loading branch information
vilaca committed Oct 28, 2013
1 parent db7f88e commit 90ea849
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/pt/go2/keystore/KeyValueStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*/
public class KeyValueStore {

static final Logger logger = LogManager.getLogger(KeyValueStore.class
.getName());
static final Logger logger = LogManager.getLogger(KeyValueStore.class);

final private BidiMap map = BidiMap.create();

Expand All @@ -38,6 +37,10 @@ public static KeyValueStore create(final String resumeFolder,

private KeyValueStore(final String resumeFolder, final int redirectCode)
throws IOException {

this.redirectCode = redirectCode;
this.backupFile = new Backup(resumeFolder);

final List<RestoreItem> restoredItems = Restore.start(resumeFolder);

for (RestoreItem item : restoredItems) {
Expand All @@ -47,8 +50,6 @@ private KeyValueStore(final String resumeFolder, final int redirectCode)
storeHash(hk, uri, false);
}

this.redirectCode = redirectCode;
this.backupFile = new Backup(resumeFolder);
}

/**
Expand Down

0 comments on commit 90ea849

Please sign in to comment.