jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1783665 - /jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java
Date Sun, 19 Feb 2017 15:56:52 GMT
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 **/



Mime
View raw message