You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by gn...@apache.org on 2017/02/13 14:42:22 UTC

svn commit: r1782785 - /felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Reflective.java

Author: gnodet
Date: Mon Feb 13 14:42:22 2017
New Revision: 1782785

URL: http://svn.apache.org/viewvc?rev=1782785&view=rev
Log:
[FELIX-5486] [gogo][runtime] Avoid unnecessary conversions from strings to booleans/integers

Modified:
    felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Reflective.java

Modified: felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Reflective.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Reflective.java?rev=1782785&r1=1782784&r2=1782785&view=diff
==============================================================================
--- felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Reflective.java (original)
+++ felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Reflective.java Mon Feb 13 14:42:22 2017
@@ -307,6 +307,7 @@ public final class Reflective
             else if (different != 0 && res > 0)
             {
                 int res2;
+                cnvIn2.add(0, session);
                 Object[] out2 = out.clone();
                 res2 = docoerce(session, target, m, types, out2, cnvIn2) + different * 2;
                 if (res >= 0 && res2 <= res)