You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2017/02/19 15:56:52 UTC

svn commit: r1783665 - /jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java

Author: fschumacher
Date: Sun Feb 19 15:56:52 2017
New Revision: 1783665

URL: http://svn.apache.org/viewvc?rev=1783665&view=rev
Log:
Immediately return value instead of creating a temp var.

Modified:
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java

Modified: jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java?rev=1783665&r1=1783664&r2=1783665&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java (original)
+++ jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java Sun Feb 19 15:56:52 2017
@@ -302,8 +302,7 @@ public class PublisherSampler extends Ba
         default:
             cacheBuilder.expireAfterWrite(0, TimeUnit.MILLISECONDS).maximumSize(0);
         }
-        Cache<Object, Object> newCache = cacheBuilder.build();
-        return newCache;
+        return cacheBuilder.build();
     }
 
     /** Gets file path to use **/