You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by jc...@apache.org on 2013/07/29 19:05:32 UTC

svn commit: r1508135 - in /commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub: StubConfiguration.java StubConfigurer.java

Author: jcarman
Date: Mon Jul 29 17:05:32 2013
New Revision: 1508135

URL: http://svn.apache.org/r1508135
Log:
Renaming type parameter to be single-character to keep Sonar happy.

Modified:
    commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfiguration.java
    commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfigurer.java

Modified: commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfiguration.java?rev=1508135&r1=1508134&r2=1508135&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfiguration.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfiguration.java Mon Jul 29 17:05:32 2013
@@ -49,15 +49,15 @@ public interface StubConfiguration {
     /**
      * Intermediate result of a generic when(...) call
      *
-     * @param <RT>
+     * @param <R>
      */
-    interface When<RT> extends MayThrow {
+    interface When<R> extends MayThrow {
         /**
          * Declare return value.
          * @param result
          * @return the original {@link StubConfiguration} for chaining
          */
-        StubConfiguration thenReturn(RT result);
+        StubConfiguration thenReturn(R result);
 
         /**
          * Defer return value.
@@ -65,7 +65,7 @@ public interface StubConfiguration {
          * @return the original {@link StubConfiguration} for chaining
          */
         StubConfiguration thenAnswer(
-                ObjectProvider<? extends RT> objectProvider);
+                ObjectProvider<? extends R> objectProvider);
 
     }
 

Modified: commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfigurer.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfigurer.java?rev=1508135&r1=1508134&r2=1508135&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfigurer.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/StubConfigurer.java Mon Jul 29 17:05:32 2013
@@ -86,17 +86,17 @@ public abstract class StubConfigurer<T> 
     /**
      * {@inheritDoc}
      */
-    public <RT> org.apache.commons.proxy2.stub.StubConfiguration.When<RT> when(
-            RT call) {
-        return new When<RT>() {
+    public <R> org.apache.commons.proxy2.stub.StubConfiguration.When<R> when(
+            R call) {
+        return new When<R>() {
 
-            public StubConfiguration thenReturn(RT result) {
+            public StubConfiguration thenReturn(R result) {
                 requireStubInterceptor().addAnswer(result);
                 return StubConfigurer.this;
             }
 
             public StubConfiguration thenAnswer(
-                    ObjectProvider<? extends RT> objectProvider) {
+                    ObjectProvider<? extends R> objectProvider) {
                 requireStubInterceptor().addAnswer(objectProvider);
                 return StubConfigurer.this;
             }