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 85000
Collapse All | Expand All

(-)libsrc/org/netbeans/editor/BaseDocument.java (-8 / +9 lines)
Lines 439-455 Link Here
439
    }
439
    }
440
440
441
    Syntax getFreeSyntax() {
441
    Syntax getFreeSyntax() {
442
        synchronized (syntaxList) {
442
       return BaseKit.getKit(kitClass).createSyntax(this);
443
            int cnt = syntaxList.size();
443
//        synchronized (syntaxList) {
444
            return (cnt > 0) ? (Syntax)syntaxList.remove(cnt - 1)
444
//            int cnt = syntaxList.size();
445
                   : BaseKit.getKit(kitClass).createSyntax(this);
445
//            return (cnt > 0) ? (Syntax)syntaxList.remove(cnt - 1)
446
        }
446
//                   : BaseKit.getKit(kitClass).createSyntax(this);
447
//        }
447
    }
448
    }
448
449
449
    void releaseSyntax(Syntax syntax) {
450
    void releaseSyntax(Syntax syntax) {
450
        synchronized (syntaxList) {
451
//        synchronized (syntaxList) {
451
            syntaxList.add(syntax);
452
//            syntaxList.add(syntax);
452
        }
453
//        }
453
    }
454
    }
454
455
455
    /** Get the formatter for this document. */
456
    /** Get the formatter for this document. */

Return to bug 85000