Skip to content

Commit f679607

Browse files
committed
HTMLDOCS-161 more Sonar compliancy
1 parent a83de58 commit f679607

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/java/fr/paris/lutece/plugins/blog/business/Blog.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
/**

src/java/fr/paris/lutece/plugins/blog/business/BlogFilter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
/**

src/java/fr/paris/lutece/plugins/blog/web/ManageBlogJspBean.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
public 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

0 commit comments

Comments
 (0)