Jean-Francois Leveque

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

...@@ -20,13 +20,13 @@ import java.util.stream.Collectors; ...@@ -20,13 +20,13 @@ import java.util.stream.Collectors;
20 @ViewScoped 20 @ViewScoped
21 public class ListPublisherActionsView implements Serializable { 21 public class ListPublisherActionsView implements Serializable {
22 22
23 - Logger logger = LoggerFactory.getLogger(getClass()); 23 + transient Logger logger = LoggerFactory.getLogger(getClass());
24 24
25 - protected PublisherService publisherService; 25 + transient protected PublisherService publisherService;
26 26
27 private Integer publisherId; 27 private Integer publisherId;
28 private boolean viewAll; 28 private boolean viewAll;
29 - private List<PublisherAction> publisherActions; 29 + transient private List<PublisherAction> publisherActions;
30 30
31 @Inject 31 @Inject
32 public ListPublisherActionsView(PublisherService publisherService) { 32 public ListPublisherActionsView(PublisherService publisherService) {
......
...@@ -22,13 +22,13 @@ import java.util.stream.Collectors; ...@@ -22,13 +22,13 @@ import java.util.stream.Collectors;
22 @ViewScoped 22 @ViewScoped
23 public class ListPublisherVersionsView implements Serializable { 23 public class ListPublisherVersionsView implements Serializable {
24 24
25 - Logger logger = LoggerFactory.getLogger(getClass()); 25 + transient Logger logger = LoggerFactory.getLogger(getClass());
26 26
27 - protected PublisherService publisherService; 27 + transient protected PublisherService publisherService;
28 28
29 private Integer publisherId; 29 private Integer publisherId;
30 private boolean viewAll; 30 private boolean viewAll;
31 - private List<PublisherVersion> publisherVersions; 31 + transient private List<PublisherVersion> publisherVersions;
32 32
33 @Inject 33 @Inject
34 public ListPublisherVersionsView(PublisherService publisherService) { 34 public ListPublisherVersionsView(PublisherService publisherService) {
......
...@@ -23,10 +23,10 @@ import java.util.List; ...@@ -23,10 +23,10 @@ import java.util.List;
23 @Named 23 @Named
24 @ViewScoped 24 @ViewScoped
25 public class PublisherVersionView implements Serializable { 25 public class PublisherVersionView implements Serializable {
26 - Logger logger = LoggerFactory.getLogger(getClass()); 26 + transient Logger logger = LoggerFactory.getLogger(getClass());
27 27
28 - PublisherService publisherService; 28 + transient PublisherService publisherService;
29 - SharedService sharedService; 29 + transient SharedService sharedService;
30 30
31 private boolean editMode; 31 private boolean editMode;
32 private boolean newPublisher; 32 private boolean newPublisher;
...@@ -38,20 +38,20 @@ public class PublisherVersionView implements Serializable { ...@@ -38,20 +38,20 @@ public class PublisherVersionView implements Serializable {
38 private String publisherPostOfficeBoxNumber; 38 private String publisherPostOfficeBoxNumber;
39 private String publisherAddressRegion; 39 private String publisherAddressRegion;
40 private String publisherAddressLocality; 40 private String publisherAddressLocality;
41 - private Country publisherAddressCountry; 41 + transient private Country publisherAddressCountry;
42 private String publisherTelephone; 42 private String publisherTelephone;
43 private String publisherEmail; 43 private String publisherEmail;
44 private String publisherURL; 44 private String publisherURL;
45 private boolean publisherActive; 45 private boolean publisherActive;
46 private String publisherHistory; 46 private String publisherHistory;
47 - private Person publisherVersionAuthor; 47 + transient private Person publisherVersionAuthor;
48 private Timestamp publisherVersionDatetime; 48 private Timestamp publisherVersionDatetime;
49 49
50 - private Publisher publisher; 50 + transient private Publisher publisher;
51 51
52 - private List<Country> availableCountries; 52 + transient private List<Country> availableCountries;
53 53
54 - private List<PublisherAction> publisherActions; 54 + transient private List<PublisherAction> publisherActions;
55 55
56 @Inject 56 @Inject
57 public PublisherVersionView(PublisherService publisherService, SharedService sharedService) { 57 public PublisherVersionView(PublisherService publisherService, SharedService sharedService) {
......