From 6fffb452a8072d1c36018f1a6b9404d3b76bb4a1 Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Mon, 11 Apr 2011 12:48:35 +0000 Subject: [PATCH] Adjust java-doc. --- .../core/dom/parser/AbstractGNUSourceCodeParser.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java index c9d35a3535c..646a29658a5 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java @@ -462,8 +462,8 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser { } /** - * If the type of the next token matches, it is consumed and returned. Otherwise a - * {@link BacktrackException} will be thrown. + * The next token is consumed. Afterwards its type is checked and a {@link BacktrackException} + * is thrown if the type does not match the expected one. * @param type the expected type of the next token. */ protected final IToken consume(int type) throws EndOfFileException, BacktrackException { @@ -474,8 +474,8 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser { } /** - * If the type of the next token matches, it is consumed and returned. Otherwise a - * {@link BacktrackException} will be thrown. + * The next token is consumed. Afterwards its type is checked and a {@link BacktrackException} + * is thrown if the type neither matches type1 nor type2. */ protected final IToken consume(int type1, int type2) throws EndOfFileException, BacktrackException { final IToken result= consume();