jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1795017 - /jmeter/trunk/src/core/org/apache/jmeter/gui/util/TextAreaCellRenderer.java
Date Fri, 12 May 2017 19:48:03 GMT
Author: fschumacher
Date: Fri May 12 19:48:03 2017
New Revision: 1795017

URL: http://svn.apache.org/viewvc?rev=1795017&view=rev
Log:
return new instance directly, instead of assigning it to a temporary variable first.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/util/TextAreaCellRenderer.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/TextAreaCellRenderer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/TextAreaCellRenderer.java?rev=1795017&r1=1795016&r2=1795017&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/TextAreaCellRenderer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/TextAreaCellRenderer.java Fri May 12
19:48:03 2017
@@ -44,8 +44,7 @@ public class TextAreaCellRenderer implem
         if (table.getRowHeight(row) < getPreferredHeight()) {
             table.setRowHeight(row, getPreferredHeight());
         }
-        JTextScrollPane scrollPane = JTextScrollPane.getInstance(rend);
-        return scrollPane;
+        return JTextScrollPane.getInstance(rend);
     }
 
     /**



Mime
View raw message