You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mc...@apache.org on 2011/10/28 18:55:05 UTC

svn commit: r1190446 - in /commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance: ./ invocation/ runtime/

Author: mcucchiara
Date: Fri Oct 28 16:55:05 2011
New Revision: 1190446

URL: http://svn.apache.org/viewvc?rev=1190446&view=rev
Log:
Reformatted code

Modified:
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceCommonsOgnlTest.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceOldOgnlTest.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FieldInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FindParameterTypesInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetConstructorsInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetDeclaredMethodsInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetMethodsInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/InvokeMethodInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/MethodParameterTypesInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PermissionInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PrimitiveDefaultInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/RepeatableInvocation.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/CommonsRuntimeWrapper.java
    commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/RuntimeWrapper.java

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceCommonsOgnlTest.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceCommonsOgnlTest.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceCommonsOgnlTest.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceCommonsOgnlTest.java Fri Oct 28 16:55:05 2011
@@ -41,14 +41,14 @@ public class PerformanceCommonsOgnlTest
     extends BasePerformanceTest
 {
     @BeforeClass
-    public static void before( )
+    public static void before()
     {
         runtimeWrapper = COMMONS_RUNTIME_WRAPPER;
     }
 
     @AfterClass
-    public static void after( )
+    public static void after()
     {
-        runtimeWrapper.clearCache( );
+        runtimeWrapper.clearCache();
     }
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceOldOgnlTest.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceOldOgnlTest.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceOldOgnlTest.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/PerformanceOldOgnlTest.java Fri Oct 28 16:55:05 2011
@@ -41,14 +41,14 @@ public class PerformanceOldOgnlTest
     extends BasePerformanceTest
 {
     @BeforeClass
-    public static void before( )
+    public static void before()
     {
         runtimeWrapper = OLD_RUNTIME_WRAPPER;
     }
 
     @AfterClass
-    public static void after( )
+    public static void after()
     {
-        runtimeWrapper.clearCache( );
+        runtimeWrapper.clearCache();
     }
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FieldInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FieldInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FieldInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FieldInvocation.java Fri Oct 28 16:55:05 2011
@@ -28,18 +28,26 @@ import org.apache.commons.ognl.performan
  * Date: 18/10/11
  * Time: 16.28
  */
-public class FieldInvocation extends RepeatableInvocation {
-    public FieldInvocation(RuntimeWrapper runtimeWrapper) throws Exception {
-        super(runtimeWrapper);
+public class FieldInvocation
+    extends RepeatableInvocation
+{
+    public FieldInvocation( RuntimeWrapper runtimeWrapper )
+        throws Exception
+    {
+        super( runtimeWrapper );
     }
 
-    public FieldInvocation(RuntimeWrapper runtimeWrapper, int times) throws Exception {
-        super(runtimeWrapper, times);
+    public FieldInvocation( RuntimeWrapper runtimeWrapper, int times )
+        throws Exception
+    {
+        super( runtimeWrapper, times );
     }
 
     @Override
-    protected void invoke(Class<?> c) throws Exception {
-        getRuntime().getFields(c);
+    protected void invoke( Class<?> c )
+        throws Exception
+    {
+        getRuntime().getFields( c );
     }
 
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FindParameterTypesInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FindParameterTypesInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FindParameterTypesInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/FindParameterTypesInvocation.java Fri Oct 28 16:55:05 2011
@@ -31,20 +31,29 @@ import java.lang.reflect.Method;
  * Date: 18/10/11
  * Time: 16.37
  */
-public class FindParameterTypesInvocation extends RepeatableInvocation {
+public class FindParameterTypesInvocation
+    extends RepeatableInvocation
+{
 
-    public FindParameterTypesInvocation(RuntimeWrapper runtimeWrapper, int times) throws Exception {
-        super(runtimeWrapper, times);
+    public FindParameterTypesInvocation( RuntimeWrapper runtimeWrapper, int times )
+        throws Exception
+    {
+        super( runtimeWrapper, times );
     }
 
-    public FindParameterTypesInvocation(RuntimeWrapper runtimeWrapper) throws Exception {
-        super(runtimeWrapper);
+    public FindParameterTypesInvocation( RuntimeWrapper runtimeWrapper )
+        throws Exception
+    {
+        super( runtimeWrapper );
     }
 
     @Override
-    protected void invoke(Class<?> c) throws Exception {
-        for (Method method : c.getMethods()) {
-            getRuntime().findParameterTypes(String.class, method);
+    protected void invoke( Class<?> c )
+        throws Exception
+    {
+        for ( Method method : c.getMethods() )
+        {
+            getRuntime().findParameterTypes( String.class, method );
         }
     }
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetConstructorsInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetConstructorsInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetConstructorsInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetConstructorsInvocation.java Fri Oct 28 16:55:05 2011
@@ -29,17 +29,25 @@ import org.apache.commons.ognl.performan
  * Date: 18/10/11
  * Time: 16.21
  */
-public class GetConstructorsInvocation extends RepeatableInvocation {
-    public GetConstructorsInvocation(RuntimeWrapper runtimeWrapper) throws Exception {
-        super(runtimeWrapper);
+public class GetConstructorsInvocation
+    extends RepeatableInvocation
+{
+    public GetConstructorsInvocation( RuntimeWrapper runtimeWrapper )
+        throws Exception
+    {
+        super( runtimeWrapper );
     }
 
-    public GetConstructorsInvocation(RuntimeWrapper runtimeWrapper, int times) throws Exception {
-        super(runtimeWrapper, times);
+    public GetConstructorsInvocation( RuntimeWrapper runtimeWrapper, int times )
+        throws Exception
+    {
+        super( runtimeWrapper, times );
     }
 
     @Override
-    protected void invoke(Class<?> c) throws Exception {
-        getRuntime().getConstructors(c);
+    protected void invoke( Class<?> c )
+        throws Exception
+    {
+        getRuntime().getConstructors( c );
     }
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetDeclaredMethodsInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetDeclaredMethodsInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetDeclaredMethodsInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetDeclaredMethodsInvocation.java Fri Oct 28 16:55:05 2011
@@ -29,20 +29,27 @@ import org.apache.commons.ognl.performan
  * Time: 15.57
  */
 public class GetDeclaredMethodsInvocation
-    extends RepeatableInvocation {
+    extends RepeatableInvocation
+{
 
-    public GetDeclaredMethodsInvocation( RuntimeWrapper runtimeWrapper ) throws Exception {
-        super(runtimeWrapper);
+    public GetDeclaredMethodsInvocation( RuntimeWrapper runtimeWrapper )
+        throws Exception
+    {
+        super( runtimeWrapper );
     }
 
-    public GetDeclaredMethodsInvocation( RuntimeWrapper runtimeWrapper, int times ) throws Exception {
-        super(runtimeWrapper, times);
+    public GetDeclaredMethodsInvocation( RuntimeWrapper runtimeWrapper, int times )
+        throws Exception
+    {
+        super( runtimeWrapper, times );
     }
 
     @Override
-    protected void invoke(Class<?> c) throws Exception {
-        getRuntime().getDeclaredMethods(c, "class", false);
-        getRuntime().getDeclaredMethods(c, "class", true);
+    protected void invoke( Class<?> c )
+        throws Exception
+    {
+        getRuntime().getDeclaredMethods( c, "class", false );
+        getRuntime().getDeclaredMethods( c, "class", true );
     }
 
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetMethodsInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetMethodsInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetMethodsInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/GetMethodsInvocation.java Fri Oct 28 16:55:05 2011
@@ -28,20 +28,28 @@ import org.apache.commons.ognl.performan
  * Date: 18/10/11
  * Time: 15.57
  */
-public class GetMethodsInvocation extends RepeatableInvocation {
+public class GetMethodsInvocation
+    extends RepeatableInvocation
+{
 
-    public GetMethodsInvocation(RuntimeWrapper runtimeWrapper) throws Exception {
-        super(runtimeWrapper);
+    public GetMethodsInvocation( RuntimeWrapper runtimeWrapper )
+        throws Exception
+    {
+        super( runtimeWrapper );
     }
 
-    public GetMethodsInvocation(RuntimeWrapper runtimeWrapper, int times) throws Exception {
-        super(runtimeWrapper, times);
+    public GetMethodsInvocation( RuntimeWrapper runtimeWrapper, int times )
+        throws Exception
+    {
+        super( runtimeWrapper, times );
     }
 
     @Override
-    protected void invoke(Class<?> c) throws Exception {
-        getRuntime().getMethods(c, false);
-        getRuntime().getMethods(c, true);
+    protected void invoke( Class<?> c )
+        throws Exception
+    {
+        getRuntime().getMethods( c, false );
+        getRuntime().getMethods( c, true );
     }
 
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/InvokeMethodInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/InvokeMethodInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/InvokeMethodInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/InvokeMethodInvocation.java Fri Oct 28 16:55:05 2011
@@ -30,21 +30,29 @@ import java.lang.reflect.Method;
  * Date: 18/10/11
  * Time: 16.45
  */
-public class InvokeMethodInvocation extends RepeatableInvocation {
-    public InvokeMethodInvocation(RuntimeWrapper runtimeWrapper) throws Exception {
-        super(runtimeWrapper);
+public class InvokeMethodInvocation
+    extends RepeatableInvocation
+{
+    public InvokeMethodInvocation( RuntimeWrapper runtimeWrapper )
+        throws Exception
+    {
+        super( runtimeWrapper );
     }
 
-    public InvokeMethodInvocation(RuntimeWrapper runtimeWrapper, int times) throws Exception {
-        super(runtimeWrapper, times);
+    public InvokeMethodInvocation( RuntimeWrapper runtimeWrapper, int times )
+        throws Exception
+    {
+        super( runtimeWrapper, times );
     }
 
     @Override
-    protected void invoke(Class<?> c) throws Exception {
+    protected void invoke( Class<?> c )
+        throws Exception
+    {
         Object o;
         o = c.newInstance();
 
-        Method toString = c.getMethod("toString");
-        getRuntime().invokeMethod(o, toString, new Object[0]);
+        Method toString = c.getMethod( "toString" );
+        getRuntime().invokeMethod( o, toString, new Object[0] );
     }
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/MethodParameterTypesInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/MethodParameterTypesInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/MethodParameterTypesInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/MethodParameterTypesInvocation.java Fri Oct 28 16:55:05 2011
@@ -31,23 +31,33 @@ import java.lang.reflect.Method;
  * Date: 18/10/11
  * Time: 16.35
  */
-public class MethodParameterTypesInvocation extends RepeatableInvocation {
+public class MethodParameterTypesInvocation
+    extends RepeatableInvocation
+{
 
-    public MethodParameterTypesInvocation(RuntimeWrapper runtimeWrapper) throws Exception {
-        super(runtimeWrapper);
+    public MethodParameterTypesInvocation( RuntimeWrapper runtimeWrapper )
+        throws Exception
+    {
+        super( runtimeWrapper );
     }
 
-    public MethodParameterTypesInvocation(RuntimeWrapper runtimeWrapper, int times) throws Exception {
-        super(runtimeWrapper, times);
+    public MethodParameterTypesInvocation( RuntimeWrapper runtimeWrapper, int times )
+        throws Exception
+    {
+        super( runtimeWrapper, times );
     }
 
     @Override
-    protected void invoke(Class<?> c) throws Exception {
-        for (Method method : c.getMethods()) {
-            getRuntime().getParameterTypes(method);
+    protected void invoke( Class<?> c )
+        throws Exception
+    {
+        for ( Method method : c.getMethods() )
+        {
+            getRuntime().getParameterTypes( method );
         }
-        for (Constructor<?> constructor : c.getConstructors()) {
-            getRuntime().getParameterTypes(constructor);
+        for ( Constructor<?> constructor : c.getConstructors() )
+        {
+            getRuntime().getParameterTypes( constructor );
         }
     }
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PermissionInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PermissionInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PermissionInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PermissionInvocation.java Fri Oct 28 16:55:05 2011
@@ -31,21 +31,30 @@ import java.lang.reflect.Method;
  * Date: 18/10/11
  * Time: 16.25
  */
-public class PermissionInvocation extends RepeatableInvocation {
+public class PermissionInvocation
+    extends RepeatableInvocation
+{
 
-    public PermissionInvocation(RuntimeWrapper runtimeWrapper) throws Exception {
-        super(runtimeWrapper);
+    public PermissionInvocation( RuntimeWrapper runtimeWrapper )
+        throws Exception
+    {
+        super( runtimeWrapper );
     }
 
-    public PermissionInvocation(RuntimeWrapper runtimeWrapper, int times) throws Exception {
-        super(runtimeWrapper, times);
+    public PermissionInvocation( RuntimeWrapper runtimeWrapper, int times )
+        throws Exception
+    {
+        super( runtimeWrapper, times );
     }
 
     @Override
-    protected void invoke(Class<?> c) throws Exception {
+    protected void invoke( Class<?> c )
+        throws Exception
+    {
         Method[] methods = c.getMethods();
-        for (Method method : methods) {
-            getRuntime().getPermission(method);
+        for ( Method method : methods )
+        {
+            getRuntime().getPermission( method );
         }
     }
 

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PrimitiveDefaultInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PrimitiveDefaultInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PrimitiveDefaultInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/PrimitiveDefaultInvocation.java Fri Oct 28 16:55:05 2011
@@ -47,6 +47,6 @@ public class PrimitiveDefaultInvocation
     protected void invoke( Class<?> c )
         throws Exception
     {
-        getRuntime( ).getPrimitiveDefaultValue( c );
+        getRuntime().getPrimitiveDefaultValue( c );
     }
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/RepeatableInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/RepeatableInvocation.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/RepeatableInvocation.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/invocation/RepeatableInvocation.java Fri Oct 28 16:55:05 2011
@@ -101,7 +101,7 @@ public abstract class RepeatableInvocati
 {
     private RuntimeWrapper runtimeWrapper;
 
-    private int times=1000;
+    private int times = 1000;
 
     private List<Class<?>> classes =
         Arrays.asList( ComponentImpl.class, BaseObjectIndexed.class, TestInherited2.class, MenuItem.class,
@@ -124,7 +124,7 @@ public abstract class RepeatableInvocati
         throws Exception
     {
         this.runtimeWrapper = runtimeWrapper;
-        invoke( );
+        invoke();
 
     }
 
@@ -134,10 +134,10 @@ public abstract class RepeatableInvocati
 
         this.runtimeWrapper = runtimeWrapper;
         this.times = times;
-        invoke( );
+        invoke();
     }
 
-    private void invoke( )
+    private void invoke()
         throws Exception
     {
         for ( int i = 0; i < times; i++ )
@@ -152,7 +152,7 @@ public abstract class RepeatableInvocati
     protected abstract void invoke( Class<?> c )
         throws Exception;
 
-    protected RuntimeWrapper getRuntime( )
+    protected RuntimeWrapper getRuntime()
     {
         return runtimeWrapper;
     }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/CommonsRuntimeWrapper.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/CommonsRuntimeWrapper.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/CommonsRuntimeWrapper.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/CommonsRuntimeWrapper.java Fri Oct 28 16:55:05 2011
@@ -35,84 +35,84 @@ public class CommonsRuntimeWrapper
     implements RuntimeWrapper
 {
 
-    
+
     public void getFields( Class<?> c )
         throws Exception
     {
         OgnlRuntime.getFields( c );
     }
 
-    
+
     public void findParameterTypes( Class<?> targetClass, Method method )
         throws Exception
     {
         OgnlRuntime.findParameterTypes( targetClass, method );
     }
 
-    
+
     public void getConstructors( Class<?> c )
         throws Exception
     {
         OgnlRuntime.getConstructors( c );
     }
 
-    
+
     public void getMethods( Class<?> c, boolean staticMethods )
         throws Exception
     {
         OgnlRuntime.getMethods( c, staticMethods );
     }
 
-    
+
     public void getDeclaredMethods( Class<?> c, String propertyName, boolean setters )
         throws Exception
     {
         OgnlRuntime.getDeclaredMethods( c, propertyName, setters );
     }
 
-    
+
     public void getParameterTypes( Method method )
         throws Exception
     {
         OgnlRuntime.getParameterTypes( method );
     }
 
-    
+
     public void getParameterTypes( Constructor<?> constructor )
         throws Exception
     {
         OgnlRuntime.getParameterTypes( constructor );
     }
 
-    
+
     public void getPermission( Method method )
         throws Exception
     {
         OgnlRuntime.getPermission( method );
     }
 
-    
+
     public void getPrimitiveDefaultValue( Class<?> type )
         throws Exception
     {
         OgnlRuntime.getPrimitiveDefaultValue( type );
     }
 
-    
+
     public void invokeMethod( Object o, Method method, Object[] args )
         throws Exception
     {
         OgnlRuntime.invokeMethod( o, method, args );
     }
 
-    
-    public void clearCache( )
+
+    public void clearCache()
     {
-        OgnlRuntime.clearCache( );
+        OgnlRuntime.clearCache();
     }
 
     public void getCompiler()
     {
-        OgnlRuntime.getCompiler(null);
+        OgnlRuntime.getCompiler( null );
     }
 }

Modified: commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/RuntimeWrapper.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/RuntimeWrapper.java?rev=1190446&r1=1190445&r2=1190446&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/RuntimeWrapper.java (original)
+++ commons/proper/ognl/trunk/src/benchmarks/java/org/apache/commons/ognl/performance/runtime/RuntimeWrapper.java Fri Oct 28 16:55:05 2011
@@ -29,26 +29,37 @@ import java.lang.reflect.Method;
  * Date: 19/10/11
  * Time: 9.37
  */
-public interface RuntimeWrapper {
-    void getFields(Class<?> c) throws Exception;
+public interface RuntimeWrapper
+{
+    void getFields( Class<?> c )
+        throws Exception;
 
-    void findParameterTypes(Class<?> targetClass, Method method) throws Exception;
+    void findParameterTypes( Class<?> targetClass, Method method )
+        throws Exception;
 
-    void getConstructors(Class<?> c) throws Exception;
+    void getConstructors( Class<?> c )
+        throws Exception;
 
-    void getMethods(Class<?> c, boolean staticMethods) throws Exception;
+    void getMethods( Class<?> c, boolean staticMethods )
+        throws Exception;
 
-    void getDeclaredMethods(Class<?> c, String propertyName, boolean setters) throws Exception;
+    void getDeclaredMethods( Class<?> c, String propertyName, boolean setters )
+        throws Exception;
 
-    void getParameterTypes(Method method) throws Exception;
+    void getParameterTypes( Method method )
+        throws Exception;
 
-    void getParameterTypes(Constructor<?> constructor) throws Exception;
+    void getParameterTypes( Constructor<?> constructor )
+        throws Exception;
 
-    void getPermission(Method method) throws Exception;
+    void getPermission( Method method )
+        throws Exception;
 
-    void getPrimitiveDefaultValue(Class<?> type) throws Exception;
+    void getPrimitiveDefaultValue( Class<?> type )
+        throws Exception;
 
-    void invokeMethod(Object o, Method method, Object[] args) throws Exception;
+    void invokeMethod( Object o, Method method, Object[] args )
+        throws Exception;
 
     void clearCache();