You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2012/08/24 21:46:58 UTC

svn commit: r1377072 - in /jmeter/trunk/src/jorphan/org/apache/jorphan: collections/HashTreeTraverser.java gui/JLabeledField.java gui/TreeTableModel.java test/UnitTestManager.java

Author: pmouawad
Date: Fri Aug 24 19:46:57 2012
New Revision: 1377072

URL: http://svn.apache.org/viewvc?rev=1377072&view=rev
Log:
Code cleanup : 
Remove public modifier from interface methods
>From JLS : 
It is permitted, but strongly discouraged as a matter of style, to redundantly
specify the public modifier for interface methods.
Remove public static final from interface fields

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/collections/HashTreeTraverser.java
    jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledField.java
    jmeter/trunk/src/jorphan/org/apache/jorphan/gui/TreeTableModel.java
    jmeter/trunk/src/jorphan/org/apache/jorphan/test/UnitTestManager.java

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/collections/HashTreeTraverser.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/collections/HashTreeTraverser.java?rev=1377072&r1=1377071&r2=1377072&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/collections/HashTreeTraverser.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/collections/HashTreeTraverser.java Fri Aug 24 19:46:57 2012
@@ -56,14 +56,14 @@ public interface HashTreeTraverser {
      * @param subTree
      *            the HashTree under the node encountered
      */
-    public void addNode(Object node, HashTree subTree);
+    void addNode(Object node, HashTree subTree);
 
     /**
      * Indicates traversal has moved up a step, and the visitor should remove
      * the top node from its stack structure. This is a callback method, and
      * should not be called except by a HashTree during traversal.
      */
-    public void subtractNode();
+    void subtractNode();
 
     /**
      * Process path is called when a leaf is reached. If a visitor wishes to
@@ -72,5 +72,5 @@ public interface HashTreeTraverser {
      * every {@link #subtractNode()} call. This is a callback method, and should
      * not be called except by a HashTree during traversal.
      */
-    public void processPath();
+    void processPath();
 }
\ No newline at end of file

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledField.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledField.java?rev=1377072&r1=1377071&r2=1377072&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledField.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledField.java Fri Aug 24 19:46:57 2012
@@ -27,13 +27,13 @@ import javax.swing.event.ChangeListener;
  * @version $Revision$
  */
 public interface JLabeledField {
-    public String getText();
+    String getText();
 
-    public void setText(String text);
+    void setText(String text);
 
-    public void setLabel(String pLabel);
+    void setLabel(String pLabel);
 
-    public void addChangeListener(ChangeListener pChangeListener);
+    void addChangeListener(ChangeListener pChangeListener);
 
-    public List<JComponent> getComponentList();
+    List<JComponent> getComponentList();
 }
\ No newline at end of file

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/gui/TreeTableModel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/TreeTableModel.java?rev=1377072&r1=1377071&r2=1377072&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/gui/TreeTableModel.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/gui/TreeTableModel.java Fri Aug 24 19:46:57 2012
@@ -34,7 +34,7 @@ public interface TreeTableModel extends 
      * @param col
      * @return the value at the column
      */
-    public Object getValueAt(Object node, int col);
+    Object getValueAt(Object node, int col);
 
     /**
      * the method is similar to isCellEditable(int,int). Instead of int,
@@ -43,7 +43,7 @@ public interface TreeTableModel extends 
      * @param col
      * @return if cell is editable
      */
-    public boolean isCellEditable(Object node, int col);
+    boolean isCellEditable(Object node, int col);
 
     /**
      * the method is similar to isCellEditable(int,int). Instead of int,
@@ -52,5 +52,5 @@ public interface TreeTableModel extends 
      * @param node
      * @param column
      */
-    public void setValueAt(Object val, Object node, int column);
+    void setValueAt(Object val, Object node, int column);
 }

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/test/UnitTestManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/test/UnitTestManager.java?rev=1377072&r1=1377071&r2=1377072&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/test/UnitTestManager.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/test/UnitTestManager.java Fri Aug 24 19:46:57 2012
@@ -36,5 +36,5 @@ public interface UnitTestManager {
      *
      * @param filename
      */
-    public void initializeProperties(String filename);
+    void initializeProperties(String filename);
 }