Fixed several small issues

This commit is contained in:
Robert Vokac 2024-05-01 18:56:58 +02:00
parent 845c5ebe49
commit ddae394534
No known key found for this signature in database
GPG Key ID: C459E1E4B4A986BB
4 changed files with 7 additions and 4 deletions

3
.gitignore vendored
View File

@ -11,3 +11,6 @@
/target/
/nbproject/
*nbactions.xml
.bib.sqlite3**

View File

@ -453,7 +453,7 @@ public class CheckCommand implements Command {
LOG.info("Part {}: Updating files - content and last modification date were changed: {}",
CheckCommandPart.COMPARE_CONTENT_AND_LAST_MODTIME.number,
contentAndModTimeWereChanged);
LOG.info("Part {}: Updating files - content and last modification date were not changed): {}",
LOG.info("Part {}: Updating files - content and last modification date were not changed: {}",
CheckCommandPart.COMPARE_CONTENT_AND_LAST_MODTIME.number,
filesToUpdateLastCheckDate.size());
bibContext.getFileRepository().updateLastCheckDate(now.toString(), filesToUpdateLastCheckDate);

View File

@ -45,7 +45,7 @@ public class HelpCommand implements Command {
SYNOPSIS
bib [command] [options]
If no command is provided, then the default command check is used. This means, if you run "bit-backup", it is the same, as to run "bib check".
If no command is provided, then the default command check is used. This means, if you run "bib", it is the same, as to run "bib check".
DESCRIPTION
Detects bit rotten files in the given directory to keep your files forever.

View File

@ -143,8 +143,8 @@ public class SystemItemRepositoryImplSqlite implements SystemItemRepository {
String sql = sb.toString();
try (
Connection connection = sqliteConnectionFactory.createConnection(); PreparedStatement stmt = connection.prepareStatement(sql);) {
Connection connection = sqliteConnectionFactory.createConnection(); PreparedStatement stmt = connection.prepareStatement(sql)) {
stmt.setString(1, key);
stmt.executeUpdate();
} catch (SQLException e) {
System.out.println(e.getMessage());