Eviter d'utiliser une barre oblique dans un nom de fichier de bienvenue de module Web

Cette règle marque tout module Web <welcome-file> qui commence par une barre oblique (/) ou une barre oblique inversée (\) dans le fichier web.xml.

Un correctif rapide pour cette règle est disponible dans le scanner de source. Ce correctif rapide supprime la barre oblique (/) ou la barre oblique inversée (\) du nom.

Par exemple, dans la liste de fichier de bienvenue suivante :
<welcome-file-list>
<welcome-file>/index.html</welcome-file>
<welcome-file>\index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>/default.html</welcome-file>
<welcome-file>\default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>

le correctif rapide met à jour quatre entrées du code comme suit :
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>