From edb40f8ada1578383e0f2f94425fc01ba6b38e33 Mon Sep 17 00:00:00 2001 From: f43nd1r Date: Sun, 8 Oct 2023 13:23:30 +0200 Subject: [PATCH] remove default javadocs --- .../com/faendir/acra/domain/AvatarService.kt | 4 ---- .../kotlin/com/faendir/acra/domain/MailService.kt | 4 ---- .../com/faendir/acra/i18n/I18NConfiguration.kt | 4 ---- .../acra/i18n/ResourceBundleI18NProvider.kt | 10 ++-------- .../com/faendir/acra/i18n/TranslatableText.kt | 4 ---- .../com/faendir/acra/rest/RestApiInterface.kt | 4 ---- .../com/faendir/acra/rest/RestReportInterface.kt | 11 +---------- .../acra/security/WebSecurityConfiguration.kt | 5 ----- .../com/faendir/acra/settings/LocalSettings.kt | 4 ---- .../com/faendir/acra/ui/component/AppPath.kt | 4 ---- .../kotlin/com/faendir/acra/ui/component/Box.kt | 4 ---- .../kotlin/com/faendir/acra/ui/component/Card.kt | 4 ---- .../acra/ui/component/ConfigurationLabel.kt | 4 ---- .../faendir/acra/ui/component/DownloadButton.kt | 4 ---- .../faendir/acra/ui/component/HasAcrariumTitle.kt | 4 ---- .../faendir/acra/ui/component/InstallationView.kt | 4 ---- .../com/faendir/acra/ui/component/RangeField.kt | 4 ---- .../com/faendir/acra/ui/component/RangeInput.kt | 4 ---- .../com/faendir/acra/ui/component/ReportList.kt | 4 ---- .../com/faendir/acra/ui/component/Translatable.kt | 4 ---- .../com/faendir/acra/ui/component/UploadField.kt | 4 ---- .../com/faendir/acra/ui/component/UserEditor.kt | 4 ---- .../acra/ui/component/dialog/DialogContent.kt | 4 ---- .../acra/ui/component/dialog/FluentDialog.kt | 4 ---- .../acra/ui/component/dialog/ValidatedField.kt | 13 +++++++------ .../ui/component/dialog/VersionEditorDialog.kt | 4 ---- .../component/grid/renderer/TimeSpanRenderer.kt | 4 ---- .../faendir/acra/ui/component/statistics/Chart.kt | 4 ---- .../acra/ui/component/statistics/PieChart.kt | 8 ++------ .../acra/ui/component/statistics/Property.kt | 4 ---- .../acra/ui/component/statistics/Statistics.kt | 4 ---- .../acra/ui/component/statistics/TimeChart.kt | 12 ++++-------- .../com/faendir/acra/ui/component/tabs/SubTabs.kt | 4 ---- .../com/faendir/acra/ui/component/tabs/Tab.kt | 4 ---- .../com/faendir/acra/ui/component/tabs/TabView.kt | 4 ---- .../kotlin/com/faendir/acra/ui/view/AboutView.kt | 5 ----- .../kotlin/com/faendir/acra/ui/view/Overview.kt | 4 ---- .../com/faendir/acra/ui/view/SettingsView.kt | 4 ---- .../com/faendir/acra/ui/view/app/AppView.kt | 4 ---- .../faendir/acra/ui/view/app/tabs/AdminAppTab.kt | 4 ---- .../faendir/acra/ui/view/app/tabs/BugAppTab.kt | 4 ---- .../faendir/acra/ui/view/app/tabs/ReportAppTab.kt | 4 ---- .../acra/ui/view/app/tabs/StatisticsAppTab.kt | 4 ---- .../com/faendir/acra/ui/view/bug/BugView.kt | 4 ---- .../faendir/acra/ui/view/bug/tabs/AdminBugTab.kt | 4 ---- .../acra/ui/view/bug/tabs/IdentifierBugTab.kt | 4 ---- .../faendir/acra/ui/view/bug/tabs/ReportBugTab.kt | 4 ---- .../acra/ui/view/bug/tabs/StatisticsBugTab.kt | 4 ---- .../acra/ui/view/installation/InstallationView.kt | 4 ---- .../installation/tabs/ReportInstallationTab.kt | 4 ---- .../tabs/StatisticsInstallationTab.kt | 4 ---- .../com/faendir/acra/ui/view/main/MainView.kt | 6 +----- .../com/faendir/acra/ui/view/report/ReportView.kt | 4 ---- .../com/faendir/acra/ui/view/user/AccountView.kt | 4 ---- .../com/faendir/acra/ui/view/user/UserManager.kt | 4 ---- .../faendir/acra/rest/RestReportInterfaceTest.kt | 5 ----- .../faendir/acra/gradle/I18nClassGenerator.groovy | 15 ++++----------- 57 files changed, 21 insertions(+), 257 deletions(-) diff --git a/acrarium/src/main/kotlin/com/faendir/acra/domain/AvatarService.kt b/acrarium/src/main/kotlin/com/faendir/acra/domain/AvatarService.kt index c59f3cb8..e69d99dc 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/domain/AvatarService.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/domain/AvatarService.kt @@ -27,10 +27,6 @@ import org.springframework.context.annotation.Lazy import org.springframework.stereotype.Service import java.io.ByteArrayInputStream -/** - * @author lukas - * @since 29.07.18 - */ @Service class AvatarService { private val avatar: Avatar = IdenticonAvatar.newAvatarBuilder().size(32, 32).build() diff --git a/acrarium/src/main/kotlin/com/faendir/acra/domain/MailService.kt b/acrarium/src/main/kotlin/com/faendir/acra/domain/MailService.kt index e47c9201..2517e1ea 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/domain/MailService.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/domain/MailService.kt @@ -48,10 +48,6 @@ import java.time.OffsetDateTime import java.time.temporal.ChronoUnit import java.util.* -/** - * @author lukas - * @since 07.12.18 - */ @Service @EnableScheduling @EnableAsync diff --git a/acrarium/src/main/kotlin/com/faendir/acra/i18n/I18NConfiguration.kt b/acrarium/src/main/kotlin/com/faendir/acra/i18n/I18NConfiguration.kt index 76d18350..4f5fca94 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/i18n/I18NConfiguration.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/i18n/I18NConfiguration.kt @@ -19,10 +19,6 @@ import com.vaadin.flow.i18n.I18NProvider import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration -/** - * @author lukas - * @since 10.11.18 - */ @Configuration class I18NConfiguration { @Bean diff --git a/acrarium/src/main/kotlin/com/faendir/acra/i18n/ResourceBundleI18NProvider.kt b/acrarium/src/main/kotlin/com/faendir/acra/i18n/ResourceBundleI18NProvider.kt index 8153a0a6..2b560c8f 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/i18n/ResourceBundleI18NProvider.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/i18n/ResourceBundleI18NProvider.kt @@ -22,12 +22,6 @@ import java.util.* private val logger = KotlinLogging.logger {} -/** - * Implementation of [I18NProvider] that reads messages from [ResourceBundle]s with a specific base name. - * - * @author lukas - * @since 10.11.18 - */ class ResourceBundleI18NProvider(private val baseName: String) : I18NProvider { private fun getResourceBundle(locale: Locale, withFallback: Boolean): ResourceBundle? { return try { @@ -43,13 +37,13 @@ class ResourceBundleI18NProvider(private val baseName: String) : I18NProvider { override fun getProvidedLocales() = Locale.getAvailableLocales().filter { getResourceBundle(it, false) != null } override fun getTranslation(key: String, locale: Locale, vararg params: Any): String? = - getResourceBundle(locale, true)?.tryOrNull { getString(key) }?.let { String.format(it, *params) } + getResourceBundle(locale, true)?.tryOrNull { getString(key) }?.let { String.format(it, *params) } private class MessageControl(private val allowFallback: Boolean) : ResourceBundle.Control() { override fun getFallbackLocale(baseName: String, locale: Locale): Locale? = if (allowFallback) super.getFallbackLocale(baseName, locale) else null override fun getCandidateLocales(baseName: String, locale: Locale): List = - if (allowFallback) super.getCandidateLocales(baseName, locale) else listOf(locale, Locale.ROOT) + if (allowFallback) super.getCandidateLocales(baseName, locale) else listOf(locale, Locale.ROOT) } diff --git a/acrarium/src/main/kotlin/com/faendir/acra/i18n/TranslatableText.kt b/acrarium/src/main/kotlin/com/faendir/acra/i18n/TranslatableText.kt index a3c91aee..639d0541 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/i18n/TranslatableText.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/i18n/TranslatableText.kt @@ -20,10 +20,6 @@ import com.vaadin.flow.i18n.I18NProvider import com.vaadin.flow.server.VaadinService import java.util.* -/** - * @author lukas - * @since 06.09.19 - */ open class TranslatableText(val id: String, vararg val params: Any) { fun translate(): String { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/rest/RestApiInterface.kt b/acrarium/src/main/kotlin/com/faendir/acra/rest/RestApiInterface.kt index f7bd6697..6e40dc58 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/rest/RestApiInterface.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/rest/RestApiInterface.kt @@ -31,10 +31,6 @@ import org.springframework.security.access.prepost.PreAuthorize import org.springframework.web.bind.annotation.* import java.time.Instant -/** - * @author lukas - * @since 23.08.18 - */ @RestController @RequestMapping(RestApiInterface.API_PATH) @PreAuthorize("isApi()") diff --git a/acrarium/src/main/kotlin/com/faendir/acra/rest/RestReportInterface.kt b/acrarium/src/main/kotlin/com/faendir/acra/rest/RestReportInterface.kt index 0e9b96e5..1e7211d6 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/rest/RestReportInterface.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/rest/RestReportInterface.kt @@ -25,29 +25,20 @@ import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestMethod import org.springframework.web.bind.annotation.RestController import org.springframework.web.multipart.MultipartHttpServletRequest -import java.io.IOException import java.nio.charset.StandardCharsets import java.security.Principal -/** - * @author Lukas - * @since 22.03.2017 - */ @RestController @PreAuthorize("isReporter()") class RestReportInterface(private val reportService: ReportService) { @RequestMapping(value = [REPORT_PATH], consumes = [MediaType.APPLICATION_JSON_VALUE], method = [RequestMethod.POST]) - fun report( - @RequestBody - content: String, principal: Principal - ) { + fun report(@RequestBody content: String, principal: Principal) { if (content.isNotBlank()) { reportService.create(principal.name, content, emptyList()) } } @RequestMapping(value = [REPORT_PATH], consumes = [MediaType.MULTIPART_FORM_DATA_VALUE], method = [RequestMethod.POST]) - @Throws(IOException::class) fun report(request: MultipartHttpServletRequest, principal: Principal): ResponseEntity<*> { val fileMap = request.multiFileMap val reportFiles = fileMap[REPORT] diff --git a/acrarium/src/main/kotlin/com/faendir/acra/security/WebSecurityConfiguration.kt b/acrarium/src/main/kotlin/com/faendir/acra/security/WebSecurityConfiguration.kt index bf7805a4..55b81276 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/security/WebSecurityConfiguration.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/security/WebSecurityConfiguration.kt @@ -44,11 +44,6 @@ import org.springframework.security.web.util.matcher.AntPathRequestMatcher.antMa import org.springframework.security.web.util.matcher.OrRequestMatcher import org.springframework.web.servlet.handler.HandlerMappingIntrospector - -/** - * @author Lukas - * @since 22.03.2017 - */ @Configuration @EnableWebSecurity class WebSecurityConfiguration(private val userRepository: UserRepository) : VaadinWebSecurity() { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/settings/LocalSettings.kt b/acrarium/src/main/kotlin/com/faendir/acra/settings/LocalSettings.kt index 648f7877..274d5bf3 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/settings/LocalSettings.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/settings/LocalSettings.kt @@ -30,10 +30,6 @@ import java.net.URLEncoder import java.util.* import kotlin.reflect.KProperty -/** - * @author lukas - * @since 10.09.19 - */ @SpringComponent @VaadinSessionScope class LocalSettings(private val objectMapper: ObjectMapper) : Serializable { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/AppPath.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/AppPath.kt index f7964cd1..8bdd5396 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/AppPath.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/AppPath.kt @@ -31,10 +31,6 @@ import org.springframework.core.annotation.AnnotationUtils import kotlin.reflect.KClass import kotlin.reflect.full.isSubclassOf -/** - * @author lukas - * @since 18.10.18 - */ class AppPath(private val applicationContext: GenericApplicationContext) : SubTabs(), AfterNavigationListener, BeforeEnterObserver { private var registration: Registration? = null diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Box.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Box.kt index bb716404..1b8072d3 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Box.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Box.kt @@ -22,10 +22,6 @@ import com.vaadin.flow.component.Tag import com.vaadin.flow.component.dependency.JsModule import com.vaadin.flow.component.littemplate.LitTemplate -/** - * @author lukas - * @since 27.11.19 - */ @Tag("acrarium-box") @JsModule("./elements/box.ts") class Box(title: Component, details: Component, action: Component) : LitTemplate(), HasSize, HasStyle, HasSlottedComponents { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Card.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Card.kt index b430d7ff..874de44a 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Card.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Card.kt @@ -20,10 +20,6 @@ import com.vaadin.flow.component.* import com.vaadin.flow.component.dependency.JsModule import com.vaadin.flow.component.littemplate.LitTemplate -/** - * @author lukas - * @since 18.10.18 - */ @Tag("acrarium-card") @JsModule("./elements/card.ts") class Card() : LitTemplate(), HasSize, HasStyle, HasComponents, HasSlottedComponents { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/ConfigurationLabel.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/ConfigurationLabel.kt index 838336ac..ea29233c 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/ConfigurationLabel.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/ConfigurationLabel.kt @@ -28,10 +28,6 @@ import com.vaadin.flow.server.VaadinRequest import com.vaadin.flow.server.VaadinService import org.springframework.beans.factory.annotation.Value -/** - * @author lukas - * @since 09.11.18 - */ class ConfigurationLabel private constructor( @Value("\${server.context-path}") private val baseUrl: String? diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/DownloadButton.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/DownloadButton.kt index 06829b42..2ee23a1e 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/DownloadButton.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/DownloadButton.kt @@ -18,10 +18,6 @@ package com.faendir.acra.ui.component import com.vaadin.flow.component.html.Anchor import com.vaadin.flow.server.AbstractStreamResource -/** - * @author lukas - * @since 15.11.18 - */ class DownloadButton(href: AbstractStreamResource, captionId: String, vararg params: Any) : Anchor(href, "") { init { element.setAttribute("download", true) diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/HasAcrariumTitle.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/HasAcrariumTitle.kt index 75a9f053..f07e403f 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/HasAcrariumTitle.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/HasAcrariumTitle.kt @@ -23,10 +23,6 @@ import com.vaadin.flow.i18n.LocaleChangeEvent import com.vaadin.flow.i18n.LocaleChangeObserver import com.vaadin.flow.router.HasDynamicTitle -/** - * @author lukas - * @since 06.09.19 - */ interface HasAcrariumTitle : HasDynamicTitle, LocaleChangeObserver { val title: TranslatableText override fun getPageTitle(): String { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/InstallationView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/InstallationView.kt index e07b34ac..bcef8a15 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/InstallationView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/InstallationView.kt @@ -27,10 +27,6 @@ import com.vaadin.flow.server.StreamResource import com.vaadin.flow.server.StreamResourceRegistry import com.vaadin.flow.server.VaadinSession -/** - * @author lukas - * @since 23.04.19 - */ @Tag("acrarium-image-with-label") @JsModule("./elements/image-with-label.ts") class InstallationView(private val avatarService: AvatarService) : LitTemplate() { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/RangeField.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/RangeField.kt index 637b0094..dccc847c 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/RangeField.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/RangeField.kt @@ -18,10 +18,6 @@ package com.faendir.acra.ui.component import com.vaadin.flow.component.customfield.CustomField import com.vaadin.flow.component.textfield.NumberField -/** - * @author lukas - * @since 07.05.19 - */ class RangeField : CustomField() { private val input: RangeInput = RangeInput() private val _field: NumberField = NumberField() diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/RangeInput.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/RangeInput.kt index 972352f5..a14cc5eb 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/RangeInput.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/RangeInput.kt @@ -17,10 +17,6 @@ package com.faendir.acra.ui.component import com.vaadin.flow.component.* -/** - * @author lukas - * @since 29.11.18 - */ @Tag(Tag.INPUT) class RangeInput : AbstractSinglePropertyField("value", 0.0, false), Focusable, HasSize, HasStyle { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/ReportList.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/ReportList.kt index 700e8c32..6f35e454 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/ReportList.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/ReportList.kt @@ -45,10 +45,6 @@ import com.vaadin.flow.data.renderer.ComponentRenderer import com.vaadin.flow.spring.annotation.SpringComponent import com.vaadin.flow.spring.annotation.UIScope -/** - * @author lukas - * @since 17.09.18 - */ class ReportList( private val app: AppId, private val dataProvider: AcrariumDataProvider, diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Translatable.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Translatable.kt index a0387e97..d17c4719 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Translatable.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/Translatable.kt @@ -34,10 +34,6 @@ import com.vaadin.flow.router.RouterLink import com.vaadin.flow.shared.Registration import kotlin.reflect.KClass -/** - * @author lukas - * @since 14.11.18 - */ open class Translatable(protected val t: T, private val property: T.(String) -> Unit, internal val captionId: String, private vararg val params: Any) : Composite(), LocaleChangeObserver, HasSize, HasStyle { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/UploadField.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/UploadField.kt index 9f1b23e9..01de93a0 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/UploadField.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/UploadField.kt @@ -22,10 +22,6 @@ import com.vaadin.flow.component.upload.receivers.MemoryBuffer import org.springframework.util.StreamUtils import java.nio.charset.Charset -/** - * @author lukas - * @since 06.03.19 - */ class UploadField : CustomField() { private val buffer: MemoryBuffer = MemoryBuffer() diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/UserEditor.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/UserEditor.kt index ec76294a..795f0ab6 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/UserEditor.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/UserEditor.kt @@ -37,10 +37,6 @@ import java.util.* import kotlin.contracts.ExperimentalContracts import kotlin.contracts.contract -/** - * @author lukas - * @since 28.02.19 - */ class UserEditor(userRepository: UserRepository, mailService: MailService?, existingUsername: String? = null, grantRoles: Set = emptySet(), onSuccess: () -> Unit) : Composite() { private val isExistingUser = existingUsername != null diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/DialogContent.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/DialogContent.kt index 1af00fae..64c26245 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/DialogContent.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/DialogContent.kt @@ -23,10 +23,6 @@ import com.vaadin.flow.component.Tag import com.vaadin.flow.component.dependency.JsModule import com.vaadin.flow.component.littemplate.LitTemplate -/** - * @author lukas - * @since 24.04.19 - */ @Tag("acrarium-dialog-content") @JsModule("./elements/dialog-content.ts") class DialogContent : LitTemplate(), HasSize, HasStyle, HasComponents, HasSlottedComponents { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/FluentDialog.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/FluentDialog.kt index 2a5508dc..d2f7437d 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/FluentDialog.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/FluentDialog.kt @@ -15,10 +15,6 @@ */ package com.faendir.acra.ui.component.dialog -/** - * @author Lukas - * @since 19.12.2017 - */ class FluentDialog : AcrariumDialog() { private val fields: MutableMap, Pair Unit>> = mutableMapOf() diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/ValidatedField.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/ValidatedField.kt index fcdb2208..4f2db395 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/ValidatedField.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/ValidatedField.kt @@ -19,11 +19,12 @@ import com.vaadin.flow.component.Component import com.vaadin.flow.component.HasValidation import com.vaadin.flow.component.HasValue -/** - * @author Lukas - * @since 22.06.2017 - */ -class ValidatedField private constructor(val field: T, private val getValue: () -> V, registerListener: ((V) -> Unit) -> Unit, private val setMessage: (String?) -> Unit) { +class ValidatedField private constructor( + val field: T, + private val getValue: () -> V, + registerListener: ((V) -> Unit) -> Unit, + private val setMessage: (String?) -> Unit +) { private val validators: MutableMap<(V) -> Boolean, String> = mutableMapOf() private val listeners: MutableList<(Boolean) -> Unit> = mutableListOf() private var valid: Boolean = false @@ -60,7 +61,7 @@ class ValidatedField private constructor(val field: T, private companion object { fun > of(field: T): ValidatedField where T : Component, T : HasValue, T : HasValidation { - return ValidatedField(field, { field.value }, { listener -> field.addValueChangeListener { listener(it.value) } }, { field.errorMessage = it }) + return ValidatedField(field, { field.value }, { listener -> field.addValueChangeListener { listener(it.value) } }, { field.errorMessage = it }) } fun of(field: T, getValue: () -> V, registerListener: ((V) -> Unit) -> Unit): ValidatedField where T : Component, T : HasValue<*, V>, T : HasValidation { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/VersionEditorDialog.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/VersionEditorDialog.kt index 893d5b12..9e18631f 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/VersionEditorDialog.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/dialog/VersionEditorDialog.kt @@ -22,10 +22,6 @@ import com.faendir.acra.persistence.version.VersionRepository import com.faendir.acra.ui.component.Translatable import com.vaadin.flow.component.orderedlayout.FlexLayout -/** - * @author lukas - * @since 24.04.19 - */ class VersionEditorDialog(versionRepository: VersionRepository, appId: AppId, onUpdate: (() -> Unit) = {}, old: Version? = null) : AcrariumDialog() { init { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/grid/renderer/TimeSpanRenderer.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/grid/renderer/TimeSpanRenderer.kt index 2c0d8ce4..2e0385af 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/grid/renderer/TimeSpanRenderer.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/grid/renderer/TimeSpanRenderer.kt @@ -24,10 +24,6 @@ import java.time.LocalDateTime import java.time.format.DateTimeFormatter import java.util.* -/** - * @author Lukas - * @since 26.05.2017 - */ open class TimeSpanRenderer(valueProvider: (T) -> LocalDateTime?) : ComponentRenderer({ t: T -> valueProvider(t)?.let { Span(PrettyTime(Locale.US).formatUnrounded(it)).apply { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Chart.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Chart.kt index 7118167b..be06184e 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Chart.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Chart.kt @@ -23,10 +23,6 @@ import com.faendir.acra.ui.ext.setWidth import com.github.appreciated.apexcharts.ApexCharts import com.vaadin.flow.component.Composite -/** - * @author lukas - * @since 01.06.18 - */ internal abstract class Chart(captionId: String, vararg params: Any) : Composite() { init { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/PieChart.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/PieChart.kt index 1a76689e..25d10612 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/PieChart.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/PieChart.kt @@ -21,10 +21,6 @@ import com.github.appreciated.apexcharts.ApexChartsBuilder import com.github.appreciated.apexcharts.config.builder.ChartBuilder import com.github.appreciated.apexcharts.config.chart.Type -/** - * @author lukas - * @since 01.06.18 - */ internal class PieChart(captionId: String, vararg params: Any) : Chart(captionId, *params) { override fun createChart(map: Map): ApexCharts { @@ -38,8 +34,8 @@ internal class PieChart(captionId: String, vararg params: Any) : Chart(c return ApexChartsBuilder.get() .withChart(ChartBuilder.get().withType(Type.PIE).withBackground("transparent").build()) .withLabels(*list.map { it.first }.toTypedArray()) - .withSeries(*list.map {it.second.toDouble() }.toTypedArray()) - .build() + .withSeries(*list.map { it.second.toDouble() }.toTypedArray()) + .build() } companion object { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Property.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Property.kt index cf055481..0035835f 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Property.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Property.kt @@ -34,10 +34,6 @@ import org.jooq.SelectField import java.time.Instant import java.time.temporal.ChronoUnit -/** - * @author lukas - * @since 01.06.18 - */ internal class Property, V> private constructor( private val appId: AppId, diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Statistics.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Statistics.kt index 7f5f462e..2531c48e 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Statistics.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/Statistics.kt @@ -35,10 +35,6 @@ import com.vaadin.flow.component.textfield.NumberField import org.jooq.Condition import org.jooq.impl.DSL -/** - * @author lukas - * @since 21.05.18 - */ open class Statistics(appId: AppId, private val baseExpression: Condition?, reportRepository: ReportRepository, versionRepository: VersionRepository) : Composite() { private val properties: MutableList> = mutableListOf() diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/TimeChart.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/TimeChart.kt index 40f6c5a2..77ce9c82 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/TimeChart.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/statistics/TimeChart.kt @@ -30,10 +30,6 @@ import com.github.appreciated.apexcharts.helper.Series import java.time.Instant import java.util.* -/** - * @author lukas - * @since 01.06.18 - */ internal class TimeChart(captionId: String, vararg params: Any) : Chart(captionId, *params) { override fun createChart(map: Map): ApexCharts { val list = map.asSequence().sortedBy { it.key }.map { arrayOf(Date.from(it.key), it.value) }.toList() @@ -48,9 +44,9 @@ internal class TimeChart(captionId: String, vararg params: Any) : Chart .build() ) .withXaxis(XAxisBuilder.get().withType(XAxisType.DATETIME).build()) - .withSeries(Series(getTranslation(Messages.REPORTS), *list.toTypedArray())) - .withDataLabels(DataLabelsBuilder.get().withEnabled(false).build()) - .withLabels(getTranslation(Messages.REPORTS)) - .build() + .withSeries(Series(getTranslation(Messages.REPORTS), *list.toTypedArray())) + .withDataLabels(DataLabelsBuilder.get().withEnabled(false).build()) + .withLabels(getTranslation(Messages.REPORTS)) + .build() } } \ No newline at end of file diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/SubTabs.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/SubTabs.kt index e96507f2..fab6a328 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/SubTabs.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/SubTabs.kt @@ -24,10 +24,6 @@ import com.vaadin.flow.component.tabs.Tabs import com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent import com.vaadin.flow.shared.Registration -/** - * @author lukas - * @since 06.09.19 - */ open class SubTabs(vararg tabs: Tab) : Tab() { private val content: Tabs = Tabs(false, *tabs) private var registration: Registration? = null diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/Tab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/Tab.kt index ef416fbc..132f1801 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/Tab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/Tab.kt @@ -19,10 +19,6 @@ import com.vaadin.flow.component.tabs.Tab import com.vaadin.flow.i18n.LocaleChangeEvent import com.vaadin.flow.i18n.LocaleChangeObserver -/** - * @author lukas - * @since 15.11.18 - */ open class Tab(private val captionId: String, private vararg val params: Any) : Tab(), LocaleChangeObserver { override fun localeChange(event: LocaleChangeEvent) { label = getTranslation(captionId, *params) diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/TabView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/TabView.kt index 0b0c6dde..47bda3c5 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/TabView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/component/tabs/TabView.kt @@ -34,10 +34,6 @@ import com.vaadin.flow.router.RouterLayout import java.io.Serializable import kotlin.reflect.KClass -/** - * @author lukas - * @since 03.12.18 - */ @Suppress("LeakingThis") open class TabView( private val name: String, diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/AboutView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/AboutView.kt index d73e8706..b62eb88b 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/AboutView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/AboutView.kt @@ -29,11 +29,6 @@ import com.vaadin.flow.router.Route import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.info.BuildProperties - -/** - * @author lukas - * @since 06.09.19 - */ @Suppress("LeakingThis") @View @Route(value = "about", layout = MainView::class) diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/Overview.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/Overview.kt index d1e90491..f759a90a 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/Overview.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/Overview.kt @@ -45,10 +45,6 @@ import org.ektorp.impl.StdCouchDbConnector import org.ektorp.impl.StdCouchDbInstance import org.json.JSONObject -/** - * @author lukas - * @since 13.07.18 - */ @View @Route(value = "", layout = MainView::class) class Overview(private val appRepository: AppRepository, private val reportService: ReportService) : Composite(), HasAcrariumTitle { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/SettingsView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/SettingsView.kt index 9f0478eb..331e8d11 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/SettingsView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/SettingsView.kt @@ -32,10 +32,6 @@ import com.vaadin.flow.server.VaadinService import com.vaadin.flow.server.VaadinSession import com.vaadin.flow.theme.lumo.Lumo -/** - * @author lukas - * @since 10.09.19 - */ @View @Route(value = "settings", layout = MainView::class) class SettingsView(localSettings: LocalSettings) : Composite(), HasAcrariumTitle { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/AppView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/AppView.kt index f4f38a1e..0c043cd0 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/AppView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/AppView.kt @@ -30,10 +30,6 @@ import com.vaadin.flow.router.NotFoundException import com.vaadin.flow.router.ParentLayout import com.vaadin.flow.router.RoutePrefix -/** - * @author lukas - * @since 13.07.18 - */ @View @RoutePrefix("app/:$PARAM_APP") @ParentLayout(MainView::class) diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/AdminAppTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/AdminAppTab.kt index 51ec2c1b..734c0eda 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/AdminAppTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/AdminAppTab.kt @@ -23,10 +23,6 @@ import com.faendir.acra.ui.view.app.AppView import com.faendir.acra.ui.view.app.tabs.admincards.* import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 18.10.18 - */ @View @Route(value = "admin", layout = AppView::class) class AdminAppTab : SpringComposite>() { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/BugAppTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/BugAppTab.kt index cd78dbdb..d621f97d 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/BugAppTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/BugAppTab.kt @@ -44,10 +44,6 @@ import com.vaadin.flow.component.radiobutton.RadioButtonGroup import com.vaadin.flow.data.renderer.ComponentRenderer import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 14.07.18 - */ @View @Route(value = "bug", layout = AppView::class) class BugAppTab( diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/ReportAppTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/ReportAppTab.kt index f79d319f..03baafc9 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/ReportAppTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/ReportAppTab.kt @@ -23,10 +23,6 @@ import com.faendir.acra.ui.view.app.AppView import com.vaadin.flow.component.Composite import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 14.07.18 - */ @View @Route(value = "report", layout = AppView::class) class ReportAppTab( diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/StatisticsAppTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/StatisticsAppTab.kt index dfa22b88..f84a9ed9 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/StatisticsAppTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/app/tabs/StatisticsAppTab.kt @@ -23,10 +23,6 @@ import com.faendir.acra.ui.component.statistics.Statistics import com.faendir.acra.ui.view.app.AppView import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 11.10.18 - */ @View @Route(value = "statistics", layout = AppView::class) class StatisticsAppTab( diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/BugView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/BugView.kt index 3581caab..276c8cd5 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/BugView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/BugView.kt @@ -33,10 +33,6 @@ import com.vaadin.flow.router.NotFoundException import com.vaadin.flow.router.ParentLayout import com.vaadin.flow.router.RoutePrefix -/** - * @author lukas - * @since 08.09.18 - */ @View @RoutePrefix("app/:$PARAM_APP/bug/:$PARAM_BUG") @ParentLayout(MainView::class) diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/AdminBugTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/AdminBugTab.kt index 22355bd8..ca392fb1 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/AdminBugTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/AdminBugTab.kt @@ -24,10 +24,6 @@ import com.faendir.acra.ui.view.bug.tabs.admincards.DangerBugAdminCard import com.faendir.acra.ui.view.bug.tabs.admincards.PropertiesBugAdminCard import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 18.10.18 - */ @View @Route(value = "admin", layout = BugView::class) class AdminBugTab : SpringComposite>() { diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/IdentifierBugTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/IdentifierBugTab.kt index eae1bcb4..898ab45b 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/IdentifierBugTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/IdentifierBugTab.kt @@ -33,10 +33,6 @@ import com.vaadin.flow.component.icon.VaadinIcon import com.vaadin.flow.component.orderedlayout.FlexLayout import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 19.11.18 - */ @View @Route(value = "identifier", layout = BugView::class) class IdentifierBugTab( diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/ReportBugTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/ReportBugTab.kt index 0653eb69..99a513e3 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/ReportBugTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/ReportBugTab.kt @@ -22,10 +22,6 @@ import com.faendir.acra.ui.view.bug.BugView import com.vaadin.flow.component.Composite import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 19.11.18 - */ @View @Route(value = "report", layout = BugView::class) class ReportBugTab( diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/StatisticsBugTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/StatisticsBugTab.kt index a7d361ee..9ffa078f 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/StatisticsBugTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/bug/tabs/StatisticsBugTab.kt @@ -24,10 +24,6 @@ import com.faendir.acra.ui.component.statistics.Statistics import com.faendir.acra.ui.view.bug.BugView import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 11.10.18 - */ @View @Route(value = "statistics", layout = BugView::class) class StatisticsBugTab( diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/InstallationView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/InstallationView.kt index 2433a71f..bcbf8c49 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/InstallationView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/InstallationView.kt @@ -33,10 +33,6 @@ import com.vaadin.flow.router.RoutePrefix import com.vaadin.flow.spring.annotation.SpringComponent import com.vaadin.flow.spring.annotation.UIScope -/** - * @author lukas - * @since 08.09.18 - */ @UIScope @SpringComponent @RoutePrefix("app/:$PARAM_APP/installation/:$PARAM_INSTALLATION") diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/tabs/ReportInstallationTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/tabs/ReportInstallationTab.kt index 7fb53a30..1e20be27 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/tabs/ReportInstallationTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/tabs/ReportInstallationTab.kt @@ -22,10 +22,6 @@ import com.faendir.acra.ui.view.installation.InstallationView import com.vaadin.flow.component.Composite import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 19.11.18 - */ @View @Route(value = "report", layout = InstallationView::class) class ReportInstallationTab( diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/tabs/StatisticsInstallationTab.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/tabs/StatisticsInstallationTab.kt index 5b60fdb4..9907fac2 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/tabs/StatisticsInstallationTab.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/installation/tabs/StatisticsInstallationTab.kt @@ -25,10 +25,6 @@ import com.faendir.acra.ui.view.installation.InstallationView import com.vaadin.flow.component.Composite import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 11.10.18 - */ @View @Route(value = "statistics", layout = InstallationView::class) class StatisticsInstallationTab( diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/main/MainView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/main/MainView.kt index fb99afbd..90f25b18 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/main/MainView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/main/MainView.kt @@ -44,10 +44,6 @@ import com.vaadin.flow.spring.annotation.UIScope import org.springframework.context.support.GenericApplicationContext import org.springframework.security.core.context.SecurityContextHolder -/** - * @author lukas - * @since 13.07.18 - */ @JsModule("./styles/shared-styles.js") @CssImport("./styles/global.css") @UIScope @@ -89,7 +85,7 @@ class MainView(applicationContext: GenericApplicationContext) : Composite createTab(captionId: String) : Tab { + private inline fun createTab(captionId: String): Tab { val tab = Tab(Translatable.createRouterLink(T::class, captionId = captionId)) targets[T::class.java] = tab return tab diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/report/ReportView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/report/ReportView.kt index 5e6876d6..0f569e1c 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/report/ReportView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/report/ReportView.kt @@ -47,10 +47,6 @@ import java.util.* import kotlin.math.log10 import kotlin.math.max -/** - * @author lukas - * @since 17.09.18 - */ @View @Route(value = "app/:$PARAM_APP/bug/:$PARAM_BUG/report/:$PARAM_REPORT", layout = MainView::class) @LogicalParent(ReportBugTab::class) diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/user/AccountView.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/user/AccountView.kt index 31a98c20..4cf1b3cc 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/user/AccountView.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/user/AccountView.kt @@ -32,10 +32,6 @@ import com.vaadin.flow.component.orderedlayout.FlexLayout import com.vaadin.flow.router.Route import org.springframework.beans.factory.annotation.Autowired -/** - * @author lukas - * @since 26.02.19 - */ @View @Route(value = "account", layout = MainView::class) class AccountView( diff --git a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/user/UserManager.kt b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/user/UserManager.kt index eb51e5c3..d7142680 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/ui/view/user/UserManager.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/ui/view/user/UserManager.kt @@ -47,10 +47,6 @@ import com.vaadin.flow.component.orderedlayout.FlexLayout import com.vaadin.flow.data.renderer.ComponentRenderer import com.vaadin.flow.router.Route -/** - * @author lukas - * @since 15.11.18 - */ @View @Route(value = "user-manager", layout = MainView::class) @RequiresRole(Role.ADMIN) diff --git a/acrarium/src/test/kotlin/com/faendir/acra/rest/RestReportInterfaceTest.kt b/acrarium/src/test/kotlin/com/faendir/acra/rest/RestReportInterfaceTest.kt index 4f582a6b..23b98dbc 100644 --- a/acrarium/src/test/kotlin/com/faendir/acra/rest/RestReportInterfaceTest.kt +++ b/acrarium/src/test/kotlin/com/faendir/acra/rest/RestReportInterfaceTest.kt @@ -20,7 +20,6 @@ import com.faendir.acra.persistence.app.AppId import com.faendir.acra.persistence.bug.BugId import com.faendir.acra.persistence.report.Report import com.faendir.acra.persistence.user.UserRepository -import com.faendir.acra.persistence.version.VersionKey import com.faendir.acra.rest.RestReportInterface.Companion.ATTACHMENT import com.faendir.acra.rest.RestReportInterface.Companion.REPORT import com.faendir.acra.rest.RestReportInterface.Companion.REPORT_PATH @@ -46,10 +45,6 @@ import org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post import org.springframework.test.web.servlet.result.MockMvcResultMatchers.status import java.time.Instant -/** - * @author lukas - * @since 26.06.18 - */ @WebMvcTest(controllers = [RestReportInterface::class], includeFilters = [ComponentScan.Filter(classes = [EnableWebSecurity::class])]) @WithMockUser(roles = ["REPORTER", "USER"]) class RestReportInterfaceTest { diff --git a/buildSrc/src/main/groovy/com/faendir/acra/gradle/I18nClassGenerator.groovy b/buildSrc/src/main/groovy/com/faendir/acra/gradle/I18nClassGenerator.groovy index 48dad62d..62214602 100644 --- a/buildSrc/src/main/groovy/com/faendir/acra/gradle/I18nClassGenerator.groovy +++ b/buildSrc/src/main/groovy/com/faendir/acra/gradle/I18nClassGenerator.groovy @@ -17,19 +17,12 @@ package com.faendir.acra.gradle import com.google.common.base.CaseFormat -import com.squareup.kotlinpoet.FileSpec -import com.squareup.kotlinpoet.KModifier -import com.squareup.kotlinpoet.PropertySpec -import com.squareup.kotlinpoet.TypeNames -import com.squareup.kotlinpoet.TypeSpec +import com.squareup.kotlinpoet.* import org.gradle.api.DefaultTask import org.gradle.api.file.FileTree import org.gradle.api.tasks.* import org.gradle.plugins.ide.idea.IdeaPlugin -/** - * @author lukas - * @since 15.08.18 - */ + @CacheableTask class I18nClassGenerator extends DefaultTask { @PathSensitive(PathSensitivity.RELATIVE) @@ -58,7 +51,7 @@ class I18nClassGenerator extends DefaultTask { Properties properties = new Properties() properties.load(file.newReader()) keys.addAll(properties.keys() as Collection) - } catch (ignored){ + } catch (ignored) { } } writeKotlin(keys) @@ -66,7 +59,7 @@ class I18nClassGenerator extends DefaultTask { private void writeKotlin(Set keys) throws IOException { TypeSpec.Builder builder = TypeSpec.objectBuilder(className); - for(String key: keys) { + for (String key : keys) { builder.addProperty(PropertySpec.builder(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, key), TypeNames.STRING, KModifier.CONST).initializer("%S", key).build()); } FileSpec.builder(packageName, className)