Author: andrew.plotnikov
Date: 2011-12-23 10:33:44 -0500 (Fri, 23 Dec 2011)
New Revision: 5349
Modified:
ws/trunk/exo.ws.commons/src/main/java/org/exoplatform/common/http/client/HTTPConnection.java
ws/trunk/exo.ws.commons/src/main/java/org/exoplatform/common/util/HierarchicalProperty.java
Log:
EXOJCR-1687: Fixed new sonar violations in project
Modified:
ws/trunk/exo.ws.commons/src/main/java/org/exoplatform/common/http/client/HTTPConnection.java
===================================================================
---
ws/trunk/exo.ws.commons/src/main/java/org/exoplatform/common/http/client/HTTPConnection.java 2011-12-23
15:32:41 UTC (rev 5348)
+++
ws/trunk/exo.ws.commons/src/main/java/org/exoplatform/common/http/client/HTTPConnection.java 2011-12-23
15:33:44 UTC (rev 5349)
@@ -790,7 +790,7 @@
public HTTPResponse Head(String file, NVPair[] form_data, NVPair[] headers) throws
IOException, ModuleException
{
String query = Codecs.nv2query(form_data);
- StringBuffer resource = new StringBuffer(stripRef(file));
+ StringBuilder resource = new StringBuilder(stripRef(file));
if (query != null && query.length() > 0)
{
@@ -831,7 +831,7 @@
*/
public HTTPResponse Head(String file, String query, NVPair[] headers) throws
IOException, ModuleException
{
- StringBuffer resource = new StringBuffer(stripRef(file));
+ StringBuilder resource = new StringBuilder(stripRef(file));
if (query != null && query.length() > 0)
{
@@ -886,7 +886,7 @@
public HTTPResponse Get(String file, NVPair[] form_data, NVPair[] headers) throws
IOException, ModuleException
{
String query = Codecs.nv2query(form_data);
- StringBuffer resource = new StringBuffer(stripRef(file));
+ StringBuilder resource = new StringBuilder(stripRef(file));
if (query != null && query.length() > 0)
{
@@ -927,7 +927,7 @@
@Deprecated
public HTTPResponse Get(String file, String query, NVPair[] headers) throws
IOException, ModuleException
{
- StringBuffer resource = new StringBuffer(stripRef(file));
+ StringBuilder resource = new StringBuilder(stripRef(file));
if (query != null && query.length() > 0)
{
Modified:
ws/trunk/exo.ws.commons/src/main/java/org/exoplatform/common/util/HierarchicalProperty.java
===================================================================
---
ws/trunk/exo.ws.commons/src/main/java/org/exoplatform/common/util/HierarchicalProperty.java 2011-12-23
15:32:41 UTC (rev 5348)
+++
ws/trunk/exo.ws.commons/src/main/java/org/exoplatform/common/util/HierarchicalProperty.java 2011-12-23
15:33:44 UTC (rev 5349)
@@ -240,7 +240,7 @@
private String makeStringFromQName(QName qname)
{
- StringBuffer str = new StringBuffer();
+ StringBuilder str = new StringBuilder();
if (qname.getPrefix() != null && qname.getPrefix().length() > 0)
{
Show replies by date