diff options
author | Silenio Quarti <silenio> | 2004-09-17 16:28:38 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2004-09-17 16:28:38 +0000 |
commit | 6c6b75c9cc2bf29ae6bab6554b97ed3f05527a5c (patch) | |
tree | 3b6aa16604501a710a177a3aee325f88d52b879a /bundles | |
parent | 768090b1f05d0b6e71a847fb0eb96174db14eaf6 (diff) | |
download | eclipse.platform.swt-6c6b75c9cc2bf29ae6bab6554b97ed3f05527a5c.tar.gz eclipse.platform.swt-6c6b75c9cc2bf29ae6bab6554b97ed3f05527a5c.tar.xz eclipse.platform.swt-6c6b75c9cc2bf29ae6bab6554b97ed3f05527a5c.zip |
*** empty log message ***
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.swt.tools/NativeStats/org/eclipse/swt/tools/internal/NativeStats.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt.tools/NativeStats/org/eclipse/swt/tools/internal/NativeStats.java b/bundles/org.eclipse.swt.tools/NativeStats/org/eclipse/swt/tools/internal/NativeStats.java index 4466d51317..f1f53a6a30 100644 --- a/bundles/org.eclipse.swt.tools/NativeStats/org/eclipse/swt/tools/internal/NativeStats.java +++ b/bundles/org.eclipse.swt.tools/NativeStats/org/eclipse/swt/tools/internal/NativeStats.java @@ -155,12 +155,12 @@ public Hashtable snapshot(String className, Hashtable snapshot) { Method functionName = clazz.getMethod(className + "_GetFunctionName", new Class[]{int.class}); int count = ((Integer)functionCount.invoke(clazz, new Object[0])).intValue(); NativeFunction[] funcs = new NativeFunction[count]; - Object[] arg = new Object[1]; + Object[] index = new Object[1]; for (int i = 0; i < count; i++) { - arg[0] = new Integer(i); - int ncalls = ((Integer)functionCallCount.invoke(clazz, arg)).intValue(); - String name = (String)functionName.invoke(clazz, arg); - funcs[i] = new NativeFunction(name, ncalls); + index[0] = new Integer(i); + int callCount = ((Integer)functionCallCount.invoke(clazz, index)).intValue(); + String name = (String)functionName.invoke(clazz, index); + funcs[i] = new NativeFunction(name, callCount); } snapshot.put(className, funcs); } catch (Throwable e) { |