Jean-Francois Leveque

sonarQube : Make "<attribute>" transient or serializable. Méthode moindre effort.

......@@ -20,13 +20,13 @@ import java.util.stream.Collectors;
@ViewScoped
public class ListPublisherActionsView implements Serializable {
Logger logger = LoggerFactory.getLogger(getClass());
transient Logger logger = LoggerFactory.getLogger(getClass());
protected PublisherService publisherService;
transient protected PublisherService publisherService;
private Integer publisherId;
private boolean viewAll;
private List<PublisherAction> publisherActions;
transient private List<PublisherAction> publisherActions;
@Inject
public ListPublisherActionsView(PublisherService publisherService) {
......
......@@ -22,13 +22,13 @@ import java.util.stream.Collectors;
@ViewScoped
public class ListPublisherVersionsView implements Serializable {
Logger logger = LoggerFactory.getLogger(getClass());
transient Logger logger = LoggerFactory.getLogger(getClass());
protected PublisherService publisherService;
transient protected PublisherService publisherService;
private Integer publisherId;
private boolean viewAll;
private List<PublisherVersion> publisherVersions;
transient private List<PublisherVersion> publisherVersions;
@Inject
public ListPublisherVersionsView(PublisherService publisherService) {
......
......@@ -23,10 +23,10 @@ import java.util.List;
@Named
@ViewScoped
public class PublisherVersionView implements Serializable {
Logger logger = LoggerFactory.getLogger(getClass());
transient Logger logger = LoggerFactory.getLogger(getClass());
PublisherService publisherService;
SharedService sharedService;
transient PublisherService publisherService;
transient SharedService sharedService;
private boolean editMode;
private boolean newPublisher;
......@@ -38,20 +38,20 @@ public class PublisherVersionView implements Serializable {
private String publisherPostOfficeBoxNumber;
private String publisherAddressRegion;
private String publisherAddressLocality;
private Country publisherAddressCountry;
transient private Country publisherAddressCountry;
private String publisherTelephone;
private String publisherEmail;
private String publisherURL;
private boolean publisherActive;
private String publisherHistory;
private Person publisherVersionAuthor;
transient private Person publisherVersionAuthor;
private Timestamp publisherVersionDatetime;
private Publisher publisher;
transient private Publisher publisher;
private List<Country> availableCountries;
transient private List<Country> availableCountries;
private List<PublisherAction> publisherActions;
transient private List<PublisherAction> publisherActions;
@Inject
public PublisherVersionView(PublisherService publisherService, SharedService sharedService) {
......