Author: mcucchiara
Date: Tue Oct 25 14:41:23 2011
New Revision: 1188676
URL: http://svn.apache.org/viewvc?rev=1188676&view=rev
Log:
Removed useless initializations
Modified:
commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTMethod.java
Modified:
commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTMethod.java
URL:
http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTMethod.java?rev=1188676&r1=1188675&r2=1188676&view=diff
==============================================================================
---
commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTMethod.java
(original)
+++
commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTMethod.java
Tue Oct 25 14:41:23 2011
@@ -158,14 +158,14 @@ public class ASTMethod
* System.out.println("methodName is " + methodName + " for target " +
target + " target class: " + (target !=
* null ? target.getClass() : null) + " current type: " +
context.getCurrentType());
*/
- if ( target == null )
+ if ( target == null )
{
throw new UnsupportedCompilationException( "Target object is
null." );
}
String post = "";
- String result = null;
- Method m = null;
+ String result;
+ Method m;
try
{
@@ -190,7 +190,7 @@ public class ASTMethod
{
context.setCurrentType( m.getReturnType() );
- context.setCurrentAccessor(
+ context.setCurrentAccessor(
OgnlRuntime.getCompiler( context
).getSuperOrInterfaceClass( m, m.getDeclaringClass() ) );
coreExpression = toSetSourceString( context, target );