felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1782785 - /felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Reflective.java
Date Mon, 13 Feb 2017 14:42:22 GMT
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)



Mime
View raw message