File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
src/java/fr/paris/lutece/plugins/blog Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -499,7 +499,7 @@ public void deleteTag( Tag tag )
499499 */
500500 public List <BlogPublication > getBlogPubilcation ( )
501501 {
502- return _blogPubilcation ;
502+ return ( List < BlogPublication >) ( ( ArrayList < BlogPublication >) _blogPubilcation ). clone ( ) ;
503503 }
504504
505505 /**
@@ -510,7 +510,7 @@ public List<BlogPublication> getBlogPubilcation( )
510510 */
511511 public void setBlogPubilcation ( List <BlogPublication > blogPublication )
512512 {
513- _blogPubilcation = blogPublication ;
513+ _blogPubilcation = ( List < BlogPublication >) ( ( ArrayList < BlogPublication >) blogPublication ). clone ( ) ;
514514 }
515515
516516 /**
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public class BlogFilter
5656 */
5757 public Integer [ ] getTagsId ( )
5858 {
59- return _arrayTagsId ;
59+ return _arrayTagsId . clone ( ) ;
6060 }
6161
6262 /**
@@ -65,7 +65,7 @@ public class BlogFilter
6565 */
6666 public void setTagsId ( Integer [ ] arrayTagsId )
6767 {
68- _arrayTagsId = arrayTagsId ;
68+ _arrayTagsId = arrayTagsId . clone ( ) ;
6969 }
7070
7171 /**
@@ -93,7 +93,7 @@ public boolean containsIdsCriteria( )
9393 */
9494 public Integer [ ] getIds ( )
9595 {
96- return _arrayId ;
96+ return _arrayId . clone ( ) ;
9797 }
9898
9999 /**
@@ -102,7 +102,7 @@ public boolean containsIdsCriteria( )
102102 */
103103 public void setIds ( Integer [ ] arrayId )
104104 {
105- _arrayId = arrayId ;
105+ _arrayId = arrayId . clone ( ) ;
106106 }
107107
108108 /**
Original file line number Diff line number Diff line change 5252public abstract class ManageBlogJspBean extends MVCAdminJspBean
5353{
5454 /**
55- *
56- */
57- private static final long serialVersionUID = -6668218805735261134L ;
58- protected static final String UNAUTHORIZED = "Unauthorized" ;
55+ *
56+ */
57+ private static final long serialVersionUID = -6668218805735261134L ;
58+ protected static final String UNAUTHORIZED = "Unauthorized" ;
5959 // Rights
6060 public static final String RIGHT_MANAGEHTMLDOCS = "BLOG_MANAGEMENT" ;
6161
You can’t perform that action at this time.
0 commit comments