From 85cf07389f6099153d14ca41fbce5b512f40c693 Mon Sep 17 00:00:00 2001 From: Olivier Maury <Olivier.Maury@inrae.fr> Date: Mon, 9 Dec 2024 17:10:38 +0100 Subject: [PATCH 1/2] =?UTF-8?q?style:=20corriger=20typo=20&=20ajouter=20en?= =?UTF-8?q?t=C3=AAte=20de=20licence.=20fixes=20#4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 2 +- .../agroclim/gwtexpe/client/AppConstants.java | 22 +++++++++++++++++ .../gwtbootstrap3/Gwtbootstrap3Activity.java | 22 +++++++++++++++++ .../gwtbootstrap3/Gwtbootstrap3View.java | 22 +++++++++++++++++ .../gwtbootstrap3/Gwtbootstrap3ViewImpl.java | 22 +++++++++++++++++ .../client/gwtbootstrap3/ModalDialog.java | 22 +++++++++++++++++ .../gwtexpe/client/i18n/AppConstants.java | 22 +++++++++++++++++ .../gwtexpe/client/i18n/AppMessages.java | 22 +++++++++++++++++ .../gwtexpe/client/i18n/package-info.java | 22 +++++++++++++++++ .../agroclim/gwtexpe/client/ui/Slider.java | 22 +++++++++++++++++ .../gwtexpe/client/ui/UiViewImpl.java | 22 +++++++++++++++++ .../gwtexpe/client/upload/UploadActivity.java | 22 +++++++++++++++++ .../gwtexpe/client/upload/UploadPlace.java | 22 +++++++++++++++++ .../gwtexpe/client/upload/UploadView.java | 22 +++++++++++++++++ .../gwtexpe/client/upload/UploadViewImpl.java | 22 +++++++++++++++++ .../gwtexpe/server/GreetingServiceImpl.java | 4 ++-- .../inrae/agroclim/gwtexpe/server/I18n.java | 22 +++++++++++++++++ .../agroclim/gwtexpe/server/LocaleUtils.java | 22 +++++++++++++++++ .../gwtexpe/server/SwaggerUiServlet.java | 24 ++++++++++++++++++- .../gwtexpe/server/UploadServlet.java | 22 +++++++++++++++++ 20 files changed, 400 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index a45c7fd..fc4fcdf 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ Ce projet vise à : -- définir une configuration minimale pour commencer un projet GWT, version [2.12.1](https://www.gwtproject.org/release-notes.html#Release_Notes_2_11_0), sur Tomcat 9 et Java 11, +- définir une configuration minimale pour commencer un projet GWT, version [2.12.1](https://www.gwtproject.org/release-notes.html#Release_Notes_2_12_1), sur Tomcat 9 et Java 17, - définir l'outillage (Checkstyle, CPD, PMD, Spotbugs), - tester quelques technologies (Hibernate, JWT, Leaflet, MVP, OpenAPI, REST, SOAP, SSE, websockets). diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/AppConstants.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/AppConstants.java index df5cfb6..c0915d1 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/AppConstants.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/AppConstants.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import com.google.gwt.i18n.client.Constants; /** diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3Activity.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3Activity.java index 838e3cb..af998de 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3Activity.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3Activity.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.gwtbootstrap3; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import com.google.gwt.activity.shared.AbstractActivity; import com.google.gwt.core.client.GWT; import com.google.gwt.event.shared.EventBus; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3View.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3View.java index 57c3f74..22f0a0a 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3View.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3View.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.gwtbootstrap3; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import com.google.gwt.user.client.ui.IsWidget; /** diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3ViewImpl.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3ViewImpl.java index fc60904..cd6aa5e 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3ViewImpl.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/Gwtbootstrap3ViewImpl.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.gwtbootstrap3; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import org.gwtbootstrap3.client.GwtBootstrap3EntryPoint; import org.gwtbootstrap3.client.ui.Button; import org.gwtbootstrap3.client.ui.TextBox; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/ModalDialog.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/ModalDialog.java index 13aedbb..0b2020b 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/ModalDialog.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/gwtbootstrap3/ModalDialog.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.gwtbootstrap3; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import org.gwtbootstrap3.client.ui.Modal; import org.gwtbootstrap3.client.ui.ModalBody; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/AppConstants.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/AppConstants.java index 05e7768..00dd225 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/AppConstants.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/AppConstants.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.i18n; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + /** * Interface to represent the constants contained in resource bundle: * 'fr/inrae/agroclim/gwt-expe/client/i18n/AppConstants.properties'. diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/AppMessages.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/AppMessages.java index 44258c7..523c5c4 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/AppMessages.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/AppMessages.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.i18n; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import com.google.gwt.i18n.client.Messages; /** diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/package-info.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/package-info.java index d32c2bd..4b6d67a 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/package-info.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/i18n/package-info.java @@ -2,3 +2,25 @@ * Internationalization classes. */ package fr.inrae.agroclim.gwtexpe.client.i18n; + +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/ui/Slider.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/ui/Slider.java index 67723bb..961b67f 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/ui/Slider.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/ui/Slider.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.ui; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.InputElement; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/ui/UiViewImpl.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/ui/UiViewImpl.java index e3e3680..7dd1ff8 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/ui/UiViewImpl.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/ui/UiViewImpl.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.ui; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.user.client.ui.Composite; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadActivity.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadActivity.java index 54c3e39..6217abc 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadActivity.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadActivity.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.upload; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import com.google.gwt.activity.shared.AbstractActivity; import com.google.gwt.event.shared.EventBus; import com.google.gwt.user.client.ui.AcceptsOneWidget; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadPlace.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadPlace.java index e309596..349b60a 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadPlace.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadPlace.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.upload; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import com.google.gwt.activity.shared.Activity; import fr.inrae.agroclim.gwtexpe.client.ClientFactory; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadView.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadView.java index fa1b3ef..82d9b7f 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadView.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadView.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.upload; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import com.google.gwt.user.client.ui.IsWidget; /** diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadViewImpl.java b/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadViewImpl.java index d97da2e..d094638 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadViewImpl.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/client/upload/UploadViewImpl.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.client.upload; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import java.util.StringJoiner; import org.gwtbootstrap3.client.ui.Button; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/server/GreetingServiceImpl.java b/src/main/java/fr/inrae/agroclim/gwtexpe/server/GreetingServiceImpl.java index 7ec2a0b..e9b3a81 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/server/GreetingServiceImpl.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/server/GreetingServiceImpl.java @@ -1,7 +1,5 @@ package fr.inrae.agroclim.gwtexpe.server; -import java.util.Locale; - /*- * #%L * GWT Experiments @@ -24,6 +22,8 @@ import java.util.Locale; * #L% */ +import java.util.Locale; + import javax.enterprise.context.RequestScoped; import javax.enterprise.event.Event; import javax.inject.Inject; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/server/I18n.java b/src/main/java/fr/inrae/agroclim/gwtexpe/server/I18n.java index a70a18d..fcbac26 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/server/I18n.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/server/I18n.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.server; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import java.text.MessageFormat; import java.util.Collections; import java.util.HashSet; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/server/LocaleUtils.java b/src/main/java/fr/inrae/agroclim/gwtexpe/server/LocaleUtils.java index f8ff189..9bb4fda 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/server/LocaleUtils.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/server/LocaleUtils.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.server; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import java.util.Locale; import java.util.Set; diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/server/SwaggerUiServlet.java b/src/main/java/fr/inrae/agroclim/gwtexpe/server/SwaggerUiServlet.java index e54cbfc..69e533e 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/server/SwaggerUiServlet.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/server/SwaggerUiServlet.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.server; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import java.io.IOException; import java.util.ResourceBundle; @@ -21,7 +43,7 @@ public class SwaggerUiServlet extends HttpServlet { private static final long serialVersionUID = 1228252165929549104L; @Override - protected void doGet(final HttpServletRequest request, final HttpServletResponse response) + public final void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { final ResourceBundle res = ResourceBundle.getBundle("fr.inrae.agroclim.gwtexpe.version"); request.setAttribute("swagger_version", res.getString("swagger-ui.version")); diff --git a/src/main/java/fr/inrae/agroclim/gwtexpe/server/UploadServlet.java b/src/main/java/fr/inrae/agroclim/gwtexpe/server/UploadServlet.java index b6ca63a..6aa9669 100644 --- a/src/main/java/fr/inrae/agroclim/gwtexpe/server/UploadServlet.java +++ b/src/main/java/fr/inrae/agroclim/gwtexpe/server/UploadServlet.java @@ -1,5 +1,27 @@ package fr.inrae.agroclim.gwtexpe.server; +/*- + * #%L + * GWT Experiments + * %% + * Copyright (C) 2018 - 2022 INRAE AgroClim + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import java.io.FileNotFoundException; import java.io.IOException; import java.util.Locale; -- GitLab From 83b8e65aa34ea5886a1bbb3ee58fabf6a5ccf306 Mon Sep 17 00:00:00 2001 From: Olivier Maury <Olivier.Maury@inrae.fr> Date: Mon, 9 Dec 2024 17:11:09 +0100 Subject: [PATCH 2/2] fichier .gitignore --- .gitignore | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 78075af..d2d1ef0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,14 @@ /bin/tokei -/.classpath /.checkstyle +/.classpath +.factorypath /gwtexpe-h2.* /gwt-unitCache/ /logs/ +/.pmd +/.pmdruleset.xml /.project /.settings/ /target/ /war/ /www-test/ -/.pmd -/.pmdruleset.xml -- GitLab