[hg] main-silver: #229250: Refactor - rename private field to Dr...

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [hg] main-silver: #229250: Refactor - rename private field to Dr...
  • Date: Tue, 04 Jun 2013 13:34:12 -0700

changeset 4a61674338f9 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/4a61674338f9
description:
        #229250: Refactor - rename private field to 
DriverListUtil#templateUrls

diffstat:

 db/src/org/netbeans/modules/db/util/DriverListUtil.java |  16 
++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (63 lines):

diff --git a/db/src/org/netbeans/modules/db/util/DriverListUtil.java 
b/db/src/org/netbeans/modules/db/util/DriverListUtil.java
--- a/db/src/org/netbeans/modules/db/util/DriverListUtil.java
+++ b/db/src/org/netbeans/modules/db/util/DriverListUtil.java
@@ -55,22 +55,22 @@
 
 public class DriverListUtil {
 
-    private static Set<JdbcUrl> templateUrl = new HashSet<>();
+    private static Set<JdbcUrl> templateUrls = new HashSet<>();
         
     private DriverListUtil() {
     }
     
     
     private static void add(JdbcUrl url) {
-        templateUrl.add(url);
+        templateUrls.add(url);
     }
     
     private static void add(String name, String type, String 
driverClassName, String urlTemplate) {
-        templateUrl.add(new JdbcUrl(name, name, driverClassName, type, 
urlTemplate));
+        templateUrls.add(new JdbcUrl(name, name, driverClassName, type, 
urlTemplate));
     }
     
     private static void add(String name, String type, String 
driverClassName, String urlTemplate, boolean parseUrl) {
-        templateUrl.add(new JdbcUrl(name, name, driverClassName, type, 
urlTemplate, parseUrl));
+        templateUrls.add(new JdbcUrl(name, name, driverClassName, type, 
urlTemplate, parseUrl));
     }
         
     private  static void add(String name, String driverClassName, String 
urlTemplate) {
@@ -334,7 +334,7 @@
     
     public static Set<String> getDrivers() {
         TreeSet<String> drivers = new TreeSet<>();
-        for (JdbcUrl url : templateUrl) {
+        for (JdbcUrl url : templateUrls) {
             // A set contains no duplicate elements, so if the same class 
name 
             // is found twice, that's OK, because it just replaces the entry
             // that was already there
@@ -346,7 +346,7 @@
     public static List<JdbcUrl> getJdbcUrls(JDBCDriver driver) {
         Set<JdbcUrl> driverUrls = new HashSet<>();
         
-        for (JdbcUrl url : templateUrl) {
+        for (JdbcUrl url : templateUrls) {
             if (url.getClassName().equals(driver.getClassName())) {
                 JdbcUrl newurl = new JdbcUrl(url, driver);
                 String connectionName = NbBundle.getMessage(
@@ -366,12 +366,12 @@
     
     static Set<JdbcUrl> getJdbcUrls() {
         // For unit testing
-        return templateUrl;
+        return templateUrls;
     }
     
     public static String getName(String driverClass) {
         // Find the first match
-        for ( JdbcUrl url : templateUrl) {
+        for ( JdbcUrl url : templateUrls) {
             if (url.getClassName().equals(driverClass)) {
                 return url.getName();
             }

[hg] main-silver: #229250: Refactor - rename private field to Dr...

Jaroslav Havlin 06/04/2013

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close