commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1748116 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java
Date Mon, 13 Jun 2016 07:55:03 GMT
Author: ggregory
Date: Mon Jun 13 07:55:02 2016
New Revision: 1748116

URL: http://svn.apache.org/viewvc?rev=1748116&view=rev
Log:
Rename private ivars to remove leading underscore (and a better name).

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java?rev=1748116&r1=1748115&r2=1748116&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java Mon Jun
13 07:55:02 2016
@@ -33,7 +33,7 @@ import org.apache.bcel.util.BCELComparat
  */
 public abstract class Constant implements Cloneable, Node {
 
-    private static BCELComparator _cmp = new BCELComparator() {
+    private static BCELComparator bcelComparator = new BCELComparator() {
 
         @Override
         public boolean equals( final Object o1, final Object o2 ) {
@@ -173,7 +173,7 @@ public abstract class Constant implement
      * @return Comparison strategy object
      */
     public static BCELComparator getComparator() {
-        return _cmp;
+        return bcelComparator;
     }
 
 
@@ -181,7 +181,7 @@ public abstract class Constant implement
      * @param comparator Comparison strategy object
      */
     public static void setComparator( final BCELComparator comparator ) {
-        _cmp = comparator;
+        bcelComparator = comparator;
     }
 
 
@@ -194,7 +194,7 @@ public abstract class Constant implement
      */
     @Override
     public boolean equals( final Object obj ) {
-        return _cmp.equals(this, obj);
+        return bcelComparator.equals(this, obj);
     }
 
 
@@ -206,6 +206,6 @@ public abstract class Constant implement
      */
     @Override
     public int hashCode() {
-        return _cmp.hashCode(this);
+        return bcelComparator.hashCode(this);
     }
 }



Mime
View raw message