This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 41720
Collapse All | Expand All

(-)x (+19 lines)
Lines 174-182 Link Here
174
                }
174
                }
175
            }
175
            }
176
        }
176
        }
177
        if ("netbeans.home".equals(x)) { // NOI18N
178
            // Get rid of this old system property.
179
            Class[] ctxt = getClassContext();
180
            for (int i = 0; i < ctxt.length; i++) {
181
                Class c = ctxt[i];
182
                if (c != TopSecurityManager.class &&
183
                        c != System.class &&
184
                        c != Boolean.class) {
185
                    String n = c.getName();
186
                    synchronized (warnedClassesNDE) {
187
                        if (warnedClassesNH.add(n)) {
188
                            System.err.println("Warning: use of system property netbeans.home in " + n + " has been obsoleted in favor of InstalledFileLocator"); // NOI18N
189
                        }
190
                    }
191
                    break;
192
                }
193
            }
194
        }
177
        return;
195
        return;
178
    }
196
    }
179
    private final Set warnedClassesNDE = new HashSet(25); // Set<String>
197
    private final Set warnedClassesNDE = new HashSet(25); // Set<String>
198
    private final Set warnedClassesNH = new HashSet(25); // Set<String>
180
199
181
    /* ----------------- private methods ------------- */
200
    /* ----------------- private methods ------------- */
182
201

Return to bug 41720