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

(-)a/junit/src/org/netbeans/modules/junit/ClassNameTextField.java (-2 / +4 lines)
Lines 165-171 Link Here
165
     * @return  status for the current text
165
     * @return  status for the current text
166
     */
166
     */
167
    int determineStatus() {
167
    int determineStatus() {
168
        String text = getText();
168
        //trim class name before validate issue :141166
169
        String text = getText().trim();
169
        
170
        
170
        int status = STATUS_BEFORE_PART;
171
        int status = STATUS_BEFORE_PART;
171
        char[] chars = text.toCharArray();
172
        char[] chars = text.toCharArray();
Lines 279-285 Link Here
279
         */
280
         */
280
        public TextListener() {
281
        public TextListener() {
281
            status = determineStatus();
282
            status = determineStatus();
282
            length = ClassNameTextField.this.getText().length();
283
             //trim class name before validate issue :141166
284
            length = ClassNameTextField.this.getText().trim().length();
283
        }
285
        }
284
286
285
        /**
287
        /**

Return to bug 141166