You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2017/11/29 13:34:48 UTC

[myfaces-tobago] branch master updated: TOBAGO-1782: Clean up * dependency to commons-collections is no longer needed. ** bugfix

This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new ffd4ee8  TOBAGO-1782: Clean up * dependency to commons-collections is no longer needed. ** bugfix
ffd4ee8 is described below

commit ffd4ee8385076493c75b8fc02c4055ab94f9ee93
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Wed Nov 29 14:34:45 2017 +0100

    TOBAGO-1782: Clean up
    * dependency to commons-collections is no longer needed.
    ** bugfix
---
 .../src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
index b2272a2..c5f1d5c 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
@@ -707,7 +707,7 @@ public final class ComponentUtils {
           if (converted instanceof Object[]) {
             return ((Object[]) converted)[0];
           } else if (converted instanceof List) {
-            ((List) converted).get(0);
+            return ((List) converted).get(0);
           } else if (converted instanceof Collection) {
             return ((Collection) converted).iterator().next();
           } else {

-- 
To stop receiving notification emails like this one, please contact
['"commits@myfaces.apache.org" <co...@myfaces.apache.org>'].