[jira] [Updated] (LANG-922) Add isOneTrue(booleans...) to BooleanUtils to preserve old behavior of BooleanUtils.xor(booleans...)

2014-02-01 Thread Benedikt Ritter (JIRA)

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

Benedikt Ritter updated LANG-922:
-

Assignee: (was: Benedikt Ritter)

 Add isOneTrue(booleans...) to BooleanUtils to preserve old behavior of 
 BooleanUtils.xor(booleans...)
 

 Key: LANG-922
 URL: https://issues.apache.org/jira/browse/LANG-922
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Reporter: Benedikt Ritter
 Fix For: Discussion


 The old implementation (prior to r1532476) of BooleanUtils.xor(boolean...) 
 checked if the provided array contained exactly one boolean with value true. 
 This was changed because it is not the correct behavior for an XOR operation. 
 To preserve the behavior we should add BooleanUtils.isOneTrue(boolean...) and 
 BooleanUtils.isOneTrue(Boolean...) (and possibly the equivalents for 
 isOneFalse).



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (LANG-922) Add isOneTrue(booleans...) to BooleanUtils to preserve old behavior of BooleanUtils.xor(booleans...)

2014-02-01 Thread Benedikt Ritter (JIRA)

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

Benedikt Ritter updated LANG-922:
-

Issue Type: Task  (was: Bug)

 Add isOneTrue(booleans...) to BooleanUtils to preserve old behavior of 
 BooleanUtils.xor(booleans...)
 

 Key: LANG-922
 URL: https://issues.apache.org/jira/browse/LANG-922
 Project: Commons Lang
  Issue Type: Task
  Components: lang.*
Reporter: Benedikt Ritter
 Fix For: Discussion


 The old implementation (prior to r1532476) of BooleanUtils.xor(boolean...) 
 checked if the provided array contained exactly one boolean with value true. 
 This was changed because it is not the correct behavior for an XOR operation. 
 To preserve the behavior we should add BooleanUtils.isOneTrue(boolean...) and 
 BooleanUtils.isOneTrue(Boolean...) (and possibly the equivalents for 
 isOneFalse).



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (LANG-922) Add isOneTrue(booleans...) to BooleanUtils to preserve old behavior of BooleanUtils.xor(booleans...)

2013-10-22 Thread Benedikt Ritter (JIRA)

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

Benedikt Ritter updated LANG-922:
-

Fix Version/s: (was: 3.2)

 Add isOneTrue(booleans...) to BooleanUtils to preserve old behavior of 
 BooleanUtils.xor(booleans...)
 

 Key: LANG-922
 URL: https://issues.apache.org/jira/browse/LANG-922
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Reporter: Benedikt Ritter
Assignee: Benedikt Ritter
 Fix For: Discussion


 The old implementation (prior to r1532476) of BooleanUtils.xor(boolean...) 
 checked if the provided array contained exactly one boolean with value true. 
 This was changed because it is not the correct behavior for an XOR operation. 
 To preserve the behavior we should add BooleanUtils.isOneTrue(boolean...) and 
 BooleanUtils.isOneTrue(Boolean...) (and possibly the equivalents for 
 isOneFalse).



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (LANG-922) Add isOneTrue(booleans...) to BooleanUtils to preserve old behavior of BooleanUtils.xor(booleans...)

2013-10-20 Thread Benedikt Ritter (JIRA)

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

Benedikt Ritter updated LANG-922:
-

Fix Version/s: Discussion

 Add isOneTrue(booleans...) to BooleanUtils to preserve old behavior of 
 BooleanUtils.xor(booleans...)
 

 Key: LANG-922
 URL: https://issues.apache.org/jira/browse/LANG-922
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Reporter: Benedikt Ritter
Assignee: Benedikt Ritter
 Fix For: 3.2, Discussion


 The old implementation (prior to r1532476) of BooleanUtils.xor(boolean...) 
 checked if the provided array contained exactly one boolean with value true. 
 This was changed because it is not the correct behavior for an XOR operation. 
 To preserve the behavior we should add BooleanUtils.isOneTrue(boolean...) and 
 BooleanUtils.isOneTrue(Boolean...) (and possibly the equivalents for 
 isOneFalse).



--
This message was sent by Atlassian JIRA
(v6.1#6144)