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

Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/CompilationUnit.java (-4 / +6 lines)
Lines 161-166 Link Here
161
	private static final IProblem[] EMPTY_PROBLEMS = new IProblem[0];
161
	private static final IProblem[] EMPTY_PROBLEMS = new IProblem[0];
162
162
163
	/**
163
	/**
164
	 * Canonical empty list of line ends.
165
	 */
166
	private static final int[] EMPTY_LINE_ENDS = new int[0];
167
168
	/**
164
	 * Messages reported by the compiler during parsing or name resolution.
169
	 * Messages reported by the compiler during parsing or name resolution.
165
	 */
170
	 */
166
	private Message[] messages;
171
	private Message[] messages;
Lines 195-207 Link Here
195
	 * @param lineEndTable the line end table
200
	 * @param lineEndTable the line end table
196
	 */
201
	 */
197
	void setLineEndTable(int[] lineEndTable) {
202
	void setLineEndTable(int[] lineEndTable) {
198
		if (lineEndTable == null) {
199
			throw new NullPointerException();
200
		}
201
		// alternate root is *not* considered a structural property
203
		// alternate root is *not* considered a structural property
202
		// but we protect them nevertheless
204
		// but we protect them nevertheless
203
		checkModifiable();
205
		checkModifiable();
204
		this.lineEndTable = lineEndTable;
206
		this.lineEndTable = lineEndTable == null ? EMPTY_LINE_ENDS : lineEndTable;
205
	}
207
	}
206
208
207
	/**
209
	/**

Return to bug 110270