-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify and tidy up config #74
Conversation
Tidy up model. Relocation: drop all that webdav mumbo-jumbo, and for now relocation is interpreted as Path, that if relative, is resolved from the relocated configuration directory.
writeFile(target, configuration, false); | ||
} | ||
|
||
public static void writeWithBackup(Path target, SettingsSecurity configuration) throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern is usually to have writeFile(Path, SettingsSecurity)
and writeFile(Path, SettingsSecutiry, boolean)
methods public methods, the first one calling the second one. And I don't see any reference to the first method. If not called, maybe simply keep the one with the backup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test UT uses the "no backup method", but will remove one extra method and apply pattern you propose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the SecUtil
write stuff can be trimmed down, but....
Tidy up model.
Relocation: drop all that mumbo-jumbo.