Index: /applications/editors/josm/plugins/cadastre-fr/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/.settings/org.eclipse.jdt.core.prefs	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/.settings/org.eclipse.jdt.core.prefs	(revision 34115)
@@ -37,8 +37,8 @@
 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
Index: /applications/editors/josm/plugins/cadastre-fr/build.xml
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/build.xml	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/build.xml	(revision 34115)
@@ -20,26 +20,9 @@
     <import file="../build-common.xml"/>
 
-    <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
-    <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
-    <property name="apache-commons" location="${plugin.dist.dir}/apache-commons.jar"/>
-
-    <!--
-    **********************************************************
-    ** compile - compiles the source tree
-    **********************************************************
-    -->
-    <target name="compile" depends="init">
-        <echo message="compiling sources for ${plugin.jar} ... "/>
-        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
-            <classpath>
-                <pathelement path="${plugin.build.dir}"/>
-                <pathelement location="${josm}"/>
-                <pathelement location="${jts}"/>
-                <pathelement location="${geotools}"/>
-                <pathelement location="${apache-commons}"/>
-             </classpath>
-            <compilerarg value="-Xlint:deprecation"/>
-            <compilerarg value="-Xlint:unchecked"/>
-        </javac>
-    </target>
+	<fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
+        <include name="apache-commons.jar"/>
+        <include name="ejml.jar"/>
+        <include name="jts.jar"/>
+        <include name="geotools.jar"/>
+    </fileset>
 </project>
Index: /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/CadastrePlugin.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/CadastrePlugin.java	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/CadastrePlugin.java	(revision 34115)
@@ -482,7 +482,8 @@
 
     /**
-     * Adds the WMSLayer following this rule:<br/>
-     * - if a WMSLayer exists place this new layer just before this layer<br/>
-     * - Otherwise place it at the bottom
+     * Adds the WMSLayer following this rule:<ul>
+     * <li>if a WMSLayer exists place this new layer just before this layer</li>
+     * <li>Otherwise place it at the bottom</li>
+     * </ul>
      * @param wmsLayer the wmsLayer to add
      */
Index: /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/actions/MenuActionSaveRasterAs.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/actions/MenuActionSaveRasterAs.java	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/actions/MenuActionSaveRasterAs.java	(revision 34115)
@@ -38,5 +38,5 @@
     private WMSLayer wmsLayer;
 
-    public class FiltrePng extends FileFilter {
+    public static class FiltrePng extends FileFilter {
         @Override
         public boolean accept(File file) {
@@ -53,5 +53,5 @@
     }
 
-    public class FiltreTiff extends FileFilter {
+    public static class FiltreTiff extends FileFilter {
         @Override
         public boolean accept(File file) {
Index: /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/EdigeoFileVEC.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/EdigeoFileVEC.java	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/EdigeoFileVEC.java	(revision 34115)
@@ -186,5 +186,5 @@
             ISOLATED(2);
 
-            int code;
+            final int code;
             NodeType(int code) {
                 this.code = code;
Index: /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/EdigeoLotFile.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/EdigeoLotFile.java	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/EdigeoLotFile.java	(revision 34115)
@@ -63,5 +63,5 @@
     /**
      * Finds a descriptor by its identifier.
-     * @param values 4 values obtained from a {@link EdigeoRecord}:<ol>
+     * @param values 4 values obtained from a {@code EdigeoRecord}:<ol>
      * <li>Lot identifier</li>
      * <li>subset identifier</li>
@@ -77,5 +77,5 @@
     /**
      * Finds a descriptor by its identifier.
-     * @param values 4 values obtained from a {@link EdigeoRecord}:<ol>
+     * @param values 4 values obtained from a {@code EdigeoRecord}:<ol>
      * <li>Lot identifier</li>
      * <li>subset identifier</li>
Index: /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/pci/EdigeoPciReader.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/pci/EdigeoPciReader.java	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/pci/EdigeoPciReader.java	(revision 34115)
@@ -23,6 +23,6 @@
 import org.apache.commons.text.WordUtils;
 import org.openstreetmap.josm.data.osm.DataSet;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
 import org.openstreetmap.josm.data.osm.UploadPolicy;
-import org.openstreetmap.josm.data.osm.OsmPrimitive;
 import org.openstreetmap.josm.data.osm.Way;
 import org.openstreetmap.josm.gui.progress.ProgressMonitor;
@@ -257,5 +257,5 @@
                         try (FileOutputStream out = new FileOutputStream(file)) {
                             if (IOUtils.copy(tar, out) < entry.getSize()) {
-                                throw new IOException(String.format("Unable to write ''{0}'' entirely", file));
+                                throw new IOException(String.format("Unable to write ''%s'' entirely", file));
                             } else if (file.toString().endsWith(".THF")) {
                                 thfPath = file.toPath();
Index: /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/CadastreInterface.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/CadastreInterface.java	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/CadastreInterface.java	(revision 34115)
@@ -267,10 +267,10 @@
      * Two possibilities :
      * - either the commune name matches and we receive an URL starting with "afficherCarteCommune.do" or
-     * - we don't receive a single answer but a list of possible values. This answer looks like:
-     *   <select name="codeCommune" class="long erreur" id="codeCommune">
+     * - we don't receive a single answer but a list of possible values. This answer looks like:<pre>{@code
+     * <select name="codeCommune" class="long erreur" id="codeCommune">
      *   <option value="">Choisir</option>
      *   <option value="50061" >COLMARS - 04370</option>
      *   <option value="QK066" >COLMAR - 68000</option>
-     *   </select>
+     * </select>}</pre>
      * The returned string is the interface name used in further requests, e.g. "afficherCarteCommune.do?c=QP224"
      * where QP224 is the code commune known by the WMS (or "afficherCarteTa.do?c=..." for raster images).
Index: /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/RasterImageModifier.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/RasterImageModifier.java	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/RasterImageModifier.java	(revision 34115)
@@ -53,5 +53,5 @@
         int b = col.getBlue();
         if ((b == r) && (b == g)) {
-            pixel = (0x00 << 32) + ((byte) (255 - r) << 16) + ((byte) (255 - r) << 8) + ((byte) (255 - r));
+            pixel = (0x00 << 24) + ((byte) (255 - r) << 16) + ((byte) (255 - r) << 8) + ((byte) (255 - r));
         }
         return pixel;
Index: /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/WMSLayer.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/WMSLayer.java	(revision 34114)
+++ /applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/WMSLayer.java	(revision 34115)
@@ -143,5 +143,5 @@
 
     @Override
-    public void destroy() {
+    public synchronized void destroy() {
         // if the layer is currently saving the images in the cache, wait until it's finished
         if (grabThread != null)
