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 2016/02/10 21:50:57 UTC

svn commit: r1729728 - /jmeter/trunk/src/core/org/apache/jmeter/gui/util/JDateField.java

Author: pmouawad
Date: Wed Feb 10 20:50:56 2016
New Revision: 1729728

URL: http://svn.apache.org/viewvc?rev=1729728&view=rev
Log:
Naming convention for static fields
Patch by B. Wiart 
https://github.com/apache/jmeter/pull/108

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/JDateField.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JDateField.java?rev=1729728&r1=1729727&r2=1729728&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/JDateField.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/JDateField.java Wed Feb 10 20:50:56 2016
@@ -56,7 +56,7 @@ public class JDateField extends JTextFie
      * Current format: MM/DD/YYYY HH:MM:SS 01234567890123456789 ^buffer
      * positions
      */
-    private static final int fieldPositions[] = {
+    private static final int[] FIELD_POSITIONS = {
             Calendar.YEAR, // Y
             Calendar.YEAR, // Y
             Calendar.YEAR, // Y
@@ -126,10 +126,10 @@ public class JDateField extends JTextFie
      * is true for getCaretPosition())
      */
     private static int posToField(int pos) {
-        if (pos >= fieldPositions.length) { // if beyond the end
-            pos = fieldPositions.length - 1; // then set to the end
+        if (pos >= FIELD_POSITIONS.length) { // if beyond the end
+            pos = FIELD_POSITIONS.length - 1; // then set to the end
         }
-        return fieldPositions[pos];
+        return FIELD_POSITIONS[pos];
     }
 
     /**