commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1520907 - /commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java
Date Sun, 08 Sep 2013 20:03:30 GMT
Author: mbenson
Date: Sun Sep  8 20:03:30 2013
New Revision: 1520907

URL: http://svn.apache.org/r1520907
Log:
fix

Modified:
    commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java?rev=1520907&r1=1520906&r2=1520907&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java
(original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java
Sun Sep  8 20:03:30 2013
@@ -49,6 +49,11 @@ public class SuffixInterceptor implement
 
     public Object intercept( Invocation methodInvocation ) throws Throwable
     {
-        return methodInvocation.proceed() + suffix;
+    	Object result = methodInvocation.proceed();
+    	if (result instanceof String)
+    	{
+    		result = ((String) result) + suffix;
+    	}
+    	return result;
     }
 }



Mime
View raw message