Skip to content

Commit

Permalink
Wrong method
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Sep 28, 2024
1 parent fa948b2 commit 41d483d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public String decrypt(String str) throws SecDispatcherException {

@Override
public SettingsSecurity readConfiguration(boolean createIfMissing) throws IOException {
SettingsSecurity configuration = getConfiguration(false);
SettingsSecurity configuration = SecUtil.read(getConfigurationPath());
if (configuration == null && createIfMissing) {
configuration = new SettingsSecurity();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private static void writeFile(Path target, SettingsSecurity configuration, boole
Path tempFile = parent.resolve(target.getFileName() + "."
+ Long.toUnsignedString(ThreadLocalRandom.current().nextLong()) + ".tmp");

configuration.setModelVersion(SecDispatcher.class.getPackage().getImplementationVersion());
configuration.setModelVersion(SecDispatcher.class.getPackage().getSpecificationVersion());
configuration.setModelEncoding(StandardCharsets.UTF_8.name());

try (OutputStream out = Files.newOutputStream(tempFile)) {
Expand Down

0 comments on commit 41d483d

Please sign in to comment.