commons-commits mailing list archives

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

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

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

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/SyntheticRepository.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/SyntheticRepository.java?rev=1748124&r1=1748123&r2=1748124&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/SyntheticRepository.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/SyntheticRepository.java
Mon Jun 13 08:02:16 2016
@@ -33,7 +33,7 @@ import java.util.Map;
 public class SyntheticRepository extends MemorySensitiveClassPathRepository {
 
     // private static final String DEFAULT_PATH = ClassPath.getClassPath();
-    private static final Map<ClassPath, SyntheticRepository> _instances = new HashMap<>();
// CLASSPATH X REPOSITORY
+    private static final Map<ClassPath, SyntheticRepository> instances = new HashMap<>();
// CLASSPATH X REPOSITORY
 
     private SyntheticRepository(final ClassPath path) {
         super(path);
@@ -44,10 +44,10 @@ public class SyntheticRepository extends
     }
 
     public static SyntheticRepository getInstance(final ClassPath classPath) {
-        SyntheticRepository rep = _instances.get(classPath);
+        SyntheticRepository rep = instances.get(classPath);
         if (rep == null) {
             rep = new SyntheticRepository(classPath);
-            _instances.put(classPath, rep);
+            instances.put(classPath, rep);
         }
         return rep;
     }



Mime
View raw message