View | Details | Raw Unified | Return to bug 324840 | Differences between
and this patch

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java (-3 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 82-89 Link Here
82
}
82
}
83
83
84
public StringBuffer printStatement(int tab, StringBuffer output) {
84
public StringBuffer printStatement(int tab, StringBuffer output) {
85
	printIndent(tab, output).append("break "); //$NON-NLS-1$
85
	printIndent(tab, output).append("break"); //$NON-NLS-1$
86
	if (this.label != null) output.append(this.label);
86
	if (this.label != null) output.append(' ').append(this.label);
87
	return output.append(';');
87
	return output.append(';');
88
}
88
}
89
89
(-)compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 53-64 Link Here
53
public StringBuffer printStatement(int tab, StringBuffer output) {
53
public StringBuffer printStatement(int tab, StringBuffer output) {
54
	printIndent(tab, output);
54
	printIndent(tab, output);
55
	if (this.constantExpression == null) {
55
	if (this.constantExpression == null) {
56
		output.append("default : "); //$NON-NLS-1$
56
		output.append("default :"); //$NON-NLS-1$
57
	} else {
57
	} else {
58
		output.append("case "); //$NON-NLS-1$
58
		output.append("case "); //$NON-NLS-1$
59
		this.constantExpression.printExpression(0, output).append(" : "); //$NON-NLS-1$
59
		this.constantExpression.printExpression(0, output).append(" :"); //$NON-NLS-1$
60
	}
60
	}
61
	return output.append(';');
61
	return output;
62
}
62
}
63
63
64
/**
64
/**

Return to bug 324840