[jira] [Updated] (LANG-1374) Parsing Json Array failed

2018-01-04 Thread Bruno P. Kinoshita (JIRA)

 [ 
https://issues.apache.org/jira/browse/LANG-1374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno P. Kinoshita updated LANG-1374:
-
Fix Version/s: (was: 3.7)
   (was: 3.6)
   3.8

> Parsing Json Array failed
> -
>
> Key: LANG-1374
> URL: https://issues.apache.org/jira/browse/LANG-1374
> Project: Commons Lang
>  Issue Type: Bug
>  Components: lang.builder.*
>Affects Versions: 3.7
>Reporter: Jaswanth Bala
>Assignee: Bruno P. Kinoshita
>Priority: Trivial
> Fix For: 3.8
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> In ToStringStyle class, which checking if a string is a valid Json array, the 
> boolean check was wrong.
> original:
> private boolean isJsonArray(final String valueAsString) {
> return valueAsString.startsWith(getArrayStart())
> && valueAsString.startsWith(getArrayEnd());
> }
> The second expression should be valueAsString.endsWith(getArrayEnd())



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (LANG-1374) Parsing Json Array failed

2018-01-04 Thread Bruno P. Kinoshita (JIRA)

 [ 
https://issues.apache.org/jira/browse/LANG-1374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno P. Kinoshita updated LANG-1374:
-
Description: 
In ToStringStyle class, which checking if a string is a valid Json array, the 
boolean check was wrong.
original:

{code:java}
private boolean isJsonArray(final String valueAsString) {
return valueAsString.startsWith(getArrayStart())
&& valueAsString.startsWith(getArrayEnd());
}
{code}

The second expression should be valueAsString.endsWith(getArrayEnd())

  was:
In ToStringStyle class, which checking if a string is a valid Json array, the 
boolean check was wrong.
original:
private boolean isJsonArray(final String valueAsString) {
return valueAsString.startsWith(getArrayStart())
&& valueAsString.startsWith(getArrayEnd());
}
The second expression should be valueAsString.endsWith(getArrayEnd())


> Parsing Json Array failed
> -
>
> Key: LANG-1374
> URL: https://issues.apache.org/jira/browse/LANG-1374
> Project: Commons Lang
>  Issue Type: Bug
>  Components: lang.builder.*
>Affects Versions: 3.7
>Reporter: Jaswanth Bala
>Assignee: Bruno P. Kinoshita
>Priority: Trivial
> Fix For: 3.8
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> In ToStringStyle class, which checking if a string is a valid Json array, the 
> boolean check was wrong.
> original:
> {code:java}
> private boolean isJsonArray(final String valueAsString) {
> return valueAsString.startsWith(getArrayStart())
> && valueAsString.startsWith(getArrayEnd());
> }
> {code}
> The second expression should be valueAsString.endsWith(getArrayEnd())



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (LANG-1374) Parsing Json Array failed

2018-01-04 Thread Bruno P. Kinoshita (JIRA)

 [ 
https://issues.apache.org/jira/browse/LANG-1374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno P. Kinoshita updated LANG-1374:
-
Affects Version/s: (was: 3.6)
   3.7

> Parsing Json Array failed
> -
>
> Key: LANG-1374
> URL: https://issues.apache.org/jira/browse/LANG-1374
> Project: Commons Lang
>  Issue Type: Bug
>  Components: lang.builder.*
>Affects Versions: 3.7
>Reporter: Jaswanth Bala
>Assignee: Bruno P. Kinoshita
>Priority: Trivial
> Fix For: 3.8
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> In ToStringStyle class, which checking if a string is a valid Json array, the 
> boolean check was wrong.
> original:
> private boolean isJsonArray(final String valueAsString) {
> return valueAsString.startsWith(getArrayStart())
> && valueAsString.startsWith(getArrayEnd());
> }
> The second expression should be valueAsString.endsWith(getArrayEnd())



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (LANG-1374) Parsing Json Array failed

2018-01-04 Thread Bruno P. Kinoshita (JIRA)

 [ 
https://issues.apache.org/jira/browse/LANG-1374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno P. Kinoshita updated LANG-1374:
-
Assignee: Bruno P. Kinoshita

> Parsing Json Array failed
> -
>
> Key: LANG-1374
> URL: https://issues.apache.org/jira/browse/LANG-1374
> Project: Commons Lang
>  Issue Type: Bug
>  Components: lang.builder.*
>Affects Versions: 3.6
>Reporter: Jaswanth Bala
>Assignee: Bruno P. Kinoshita
>Priority: Trivial
> Fix For: 3.6, 3.7
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> In ToStringStyle class, which checking if a string is a valid Json array, the 
> boolean check was wrong.
> original:
> private boolean isJsonArray(final String valueAsString) {
> return valueAsString.startsWith(getArrayStart())
> && valueAsString.startsWith(getArrayEnd());
> }
> The second expression should be valueAsString.endsWith(getArrayEnd())



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)