[hg] main-silver: no need for unit test access

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: no need for unit test access
  • Date: Tue, 05 Mar 2013 11:40:14 -0800

changeset ed2bd6c3f75c in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/ed2bd6c3f75c
description:
        no need for unit test access

diffstat:

 bugtracking/src/org/netbeans/modules/bugtracking/RepositoryRegistry.java |  
17 ++-------
 1 files changed, 4 insertions(+), 13 deletions(-)

diffs (34 lines):

diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/RepositoryRegistry.java 
b/bugtracking/src/org/netbeans/modules/bugtracking/RepositoryRegistry.java
--- a/bugtracking/src/org/netbeans/modules/bugtracking/RepositoryRegistry.java
+++ b/bugtracking/src/org/netbeans/modules/bugtracking/RepositoryRegistry.java
@@ -248,7 +248,10 @@
                     if(c.getID().equals(connectorId)) {
                         RepositoryInfo info = 
SPIAccessor.IMPL.read(getPreferences(), id);
                         if(info != null) {
-                            putRepository(c, info);
+                            Repository repo = c.createRepository(info);
+                            if (repo != null) {
+                                
repositories.put(APIAccessor.IMPL.getImpl(repo));
+                            }
                         }
                     }
                 }
@@ -307,18 +310,6 @@
         changeSupport.firePropertyChange(EVENT_REPOSITORIES_CHANGED, 
oldRepositories, newRepositories);
     }
 
-    /**
-     * Do not call this!!! Public for testing purposes only
-     * @param c
-     * @param info 
-     */
-    public void putRepository(DelegatingConnector c, RepositoryInfo info) {
-        Repository repo = c.createRepository(info);
-        if (repo != null) {
-            repositories.put(APIAccessor.IMPL.getImpl(repo));
-        }
-    }
-
     private class RepositoriesMap extends HashMap<String, Map<String, 
RepositoryImpl>> {
         public void remove(String connectorID, RepositoryImpl repository) {
             Map<String, RepositoryImpl> m = get(connectorID);

[hg] main-silver: no need for unit test access

Tomas Stupka 03/05/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 64 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close