peux tu refactoriser ce code en java 17 : final String ligne6 = adresse.getLigne6(); if…
peux tu refactoriser ce code en java 17 : final String ligne6 = adresse.getLigne6(); if (ligne6 != null && ligne6.length() >= 5) { // code_postal historique.setCodePostal(adresse.getLigne6().substring(0, 5)); // localite historique.setLocalite(adresse.getLigne6().substring(5)); }