File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed
src/java/fr/paris/lutece/plugins/blog/business Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 3434package fr .paris .lutece .plugins .blog .business ;
3535
3636import java .io .Serializable ;
37+ import java .util .ArrayList ;
3738import java .util .List ;
3839
3940/**
@@ -105,7 +106,7 @@ public String getTextValue( )
105106 */
106107 public void setBinaryValue ( byte [ ] bytes )
107108 {
108- _bytes = bytes ;
109+ _bytes = bytes . clone ( ) ;
109110 }
110111
111112 /**
@@ -115,7 +116,7 @@ public void setBinaryValue( byte [ ] bytes )
115116 */
116117 public byte [ ] getBinaryValue ( )
117118 {
118- return _bytes ;
119+ return _bytes . clone ( ) ;
119120 }
120121
121122 /**
@@ -167,7 +168,7 @@ public ContentType getContentType( )
167168 */
168169 public List <Blog > getBlogs ( )
169170 {
170- return _blogs ;
171+ return ( List < Blog >) ( ( ArrayList < Blog >) _blogs ). clone ( ) ;
171172 }
172173
173174 /**
@@ -178,7 +179,7 @@ public List<Blog> getBlogs( )
178179 */
179180 public void setBlogs ( List <Blog > blogs )
180181 {
181- this ._blogs = blogs ;
182+ this ._blogs = ( List < Blog >) ( ( ArrayList < Blog >) blogs ). clone ( ) ;
182183 }
183184
184185 /**
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ public int getPageTemplateDocument( )
192192 */
193193 public List <BlogPublication > getArrayBlogs ( )
194194 {
195- return _arrayBlogs ;
195+ return ( List < BlogPublication >) ( ( ArrayList < BlogPublication >) _arrayBlogs ). clone ( ) ;
196196 }
197197
198198 /**
@@ -201,7 +201,7 @@ public List<BlogPublication> getArrayBlogs( )
201201 */
202202 public void setArrayBlogs ( List <BlogPublication > arrayBlogs )
203203 {
204- _arrayBlogs = arrayBlogs ;
204+ _arrayBlogs = ( List < BlogPublication >) ( ( ArrayList < BlogPublication >) arrayBlogs ). clone ( ) ;
205205 }
206206
207207 /**
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public void setIdPortlet( int nIdPortlet )
9595 */
9696 public Date getDateBeginPublishing ( )
9797 {
98- return _dateBeginPublishing ;
98+ return ( Date ) _dateBeginPublishing . clone ( ) ;
9999 }
100100
101101 /**
@@ -104,15 +104,15 @@ public Date getDateBeginPublishing( )
104104 */
105105 public void setDateBeginPublishing ( Date datePublishing )
106106 {
107- _dateBeginPublishing = datePublishing ;
107+ _dateBeginPublishing = ( Date ) datePublishing . clone ( ) ;
108108 }
109109
110110 /**
111111 * @return the _dateEndPublishing
112112 */
113113 public Date getDateEndPublishing ( )
114114 {
115- return _dateEndPublishing ;
115+ return ( Date ) _dateEndPublishing . clone ( ) ;
116116 }
117117
118118 /**
@@ -121,7 +121,7 @@ public Date getDateEndPublishing( )
121121 */
122122 public void setDateEndPublishing ( Date datePublishing )
123123 {
124- _dateEndPublishing = datePublishing ;
124+ _dateEndPublishing = ( Date ) datePublishing . clone ( ) ;
125125 }
126126
127127 /**
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public class PortletFilter
6767 */
6868 public void setPageName ( String [ ] strPageTitle )
6969 {
70- this ._tabPageName = strPageTitle ;
70+ this ._tabPageName = strPageTitle . clone ( ) ;
7171 }
7272
7373 /**
@@ -77,7 +77,7 @@ public void setPageName( String [ ] strPageTitle )
7777 */
7878 public String [ ] getPageName ( )
7979 {
80- return _tabPageName ;
80+ return _tabPageName . clone ( ) ;
8181 }
8282
8383 /**
@@ -88,7 +88,7 @@ public void setPageName( String [ ] strPageTitle )
8888 */
8989 public void setPortletName ( String [ ] strPortletTitle )
9090 {
91- this ._tabPortletName = strPortletTitle ;
91+ this ._tabPortletName = strPortletTitle . clone ( ) ;
9292 }
9393
9494 /**
@@ -98,7 +98,7 @@ public void setPortletName( String [ ] strPortletTitle )
9898 */
9999 public String [ ] getPortletName ( )
100100 {
101- return _tabPortletName ;
101+ return _tabPortletName . clone ( ) ;
102102 }
103103
104104 /**
You can’t perform that action at this time.
0 commit comments