commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1748123 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassSet.java
Date Mon, 13 Jun 2016 08:02:03 GMT
Author: ggregory
Date: Mon Jun 13 08:02:03 2016
New Revision: 1748123

URL: http://svn.apache.org/viewvc?rev=1748123&view=rev
Log:
Rename private vars to remove leading underscore.

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassSet.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassSet.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassSet.java?rev=1748123&r1=1748122&r2=1748123&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassSet.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassSet.java Mon Jun 13
08:02:03 2016
@@ -33,31 +33,31 @@ import org.apache.bcel.classfile.JavaCla
  */
 public class ClassSet {
 
-    private final Map<String, JavaClass> _map = new HashMap<>();
+    private final Map<String, JavaClass> map = new HashMap<>();
 
 
     public boolean add( final JavaClass clazz ) {
         boolean result = false;
-        if (!_map.containsKey(clazz.getClassName())) {
+        if (!map.containsKey(clazz.getClassName())) {
             result = true;
-            _map.put(clazz.getClassName(), clazz);
+            map.put(clazz.getClassName(), clazz);
         }
         return result;
     }
 
 
     public void remove( final JavaClass clazz ) {
-        _map.remove(clazz.getClassName());
+        map.remove(clazz.getClassName());
     }
 
 
     public boolean empty() {
-        return _map.isEmpty();
+        return map.isEmpty();
     }
 
 
     public JavaClass[] toArray() {
-        Collection<JavaClass> values = _map.values();
+        Collection<JavaClass> values = map.values();
         JavaClass[] classes = new JavaClass[values.size()];
         values.toArray(classes);
         return classes;
@@ -65,6 +65,6 @@ public class ClassSet {
 
 
     public String[] getClassNames() {
-        return _map.keySet().toArray(new String[_map.size()]);
+        return map.keySet().toArray(new String[map.size()]);
     }
 }



Mime
View raw message