From 0e449b8f1d8c0631fa7ba52414f555119e762933 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Mon, 30 Dec 2024 10:20:37 +0000 Subject: [PATCH] Fix leftover typos Found via codespell --- docker/compose/README.TXT | 2 +- .../src/main/java/org/projectforge/plugins/todo/ToDoDao.java | 4 ++-- .../business/configuration/ConfigurationService.kt | 2 +- .../org/projectforge/business/scripting/GroovyEngine.kt | 2 +- .../framework/persistence/candh/CollectionHandler.kt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/compose/README.TXT b/docker/compose/README.TXT index a85f8490cc..bee0bf3b56 100644 --- a/docker/compose/README.TXT +++ b/docker/compose/README.TXT @@ -1,6 +1,6 @@ In progress -Dirctories: +Directories: project/ ├── ProjectForge/ # Application ├── ProjectForge/database # Database diff --git a/plugins/org.projectforge.plugins.todo/src/main/java/org/projectforge/plugins/todo/ToDoDao.java b/plugins/org.projectforge.plugins.todo/src/main/java/org/projectforge/plugins/todo/ToDoDao.java index 120023b0ac..6131da56b4 100644 --- a/plugins/org.projectforge.plugins.todo/src/main/java/org/projectforge/plugins/todo/ToDoDao.java +++ b/plugins/org.projectforge.plugins.todo/src/main/java/org/projectforge/plugins/todo/ToDoDao.java @@ -150,7 +150,7 @@ public List select(final BaseSearchFilter filter) { } /** - * Sends an e-mail to the projekt manager if exists and is not equals to the logged in user. + * Sends an e-mail to the project manager if exists and is not equals to the logged in user. */ public void sendNotification(final ToDoDO todo, final String requestUrl) { if (!configurationService.isSendMailConfigured()) { @@ -181,7 +181,7 @@ public void sendNotification(final ToDoDO todo, final String requestUrl) { sendNotification(todo.getReporter(), todo, data, true); } if (userId != assigneeId && userId != reporterId && !hasUserSelectAccess(user, todo, false)) { - // User is whether reporter nor assignee, so send e-mail (in the case the user hasn't read access anymore). + // User is neither reporter nor assignee, so send e-mail (in the case the user has no read access anymore). sendNotification(ThreadLocalUserContext.getLoggedInUser(), todo, data, false); } } diff --git a/projectforge-business/src/main/kotlin/org/projectforge/business/configuration/ConfigurationService.kt b/projectforge-business/src/main/kotlin/org/projectforge/business/configuration/ConfigurationService.kt index c3b2c42caf..f5879e41b4 100644 --- a/projectforge-business/src/main/kotlin/org/projectforge/business/configuration/ConfigurationService.kt +++ b/projectforge-business/src/main/kotlin/org/projectforge/business/configuration/ConfigurationService.kt @@ -293,7 +293,7 @@ open class ConfigurationService { } if (inputStream == null) { log.error( - "File '" + filename + "' not found (whether in file system under '" + base.absolutePath + "File '" + filename + "' not found (neither in file system under '" + base.absolutePath + "' nor in resource!)" ) } diff --git a/projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyEngine.kt b/projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyEngine.kt index d0f92e9e1c..37894746dc 100644 --- a/projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyEngine.kt +++ b/projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyEngine.kt @@ -155,7 +155,7 @@ class GroovyEngine @JvmOverloads constructor( if (template == null) { log.error( "Template with filename '" + file - + "' not found (whether in resource path nor in ProjectForge's application dir." + + "' not found (neither in resource path nor in ProjectForge's application dir." ) return "" } diff --git a/projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/candh/CollectionHandler.kt b/projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/candh/CollectionHandler.kt index aee3395e15..282fbce473 100644 --- a/projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/candh/CollectionHandler.kt +++ b/projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/candh/CollectionHandler.kt @@ -286,7 +286,7 @@ open class CollectionHandler : CandHIHandler { val behavior = AnnotationsUtils.getAnnotation(property, PersistenceBehavior::class.java) log.debug { "writeInsertHistoryEntriesForNewCollectionEntries: srcEntry of src-collection is BaseDO. autoUpdateCollectionEntres = ${behavior?.autoUpdateCollectionEntries == true}" } if (behavior?.autoUpdateCollectionEntries == true) { - // No, we have to handle the child collections of all exisiting collection entries: + // No, we have to handle the child collections of all existing collection entries: // Example: RechnungDO -> list of RechnungPositionDO -> list of KostZuweisungDO. mergedCol.forEach { mergedEntry -> if (Hibernate.isInitialized(mergedEntry) && mergedEntry.id != null) {