1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +02:00

Fixed compiler warnings.

Change-Id: I271db5f3e4f64f13e260e66d1ea103eedfbdde4d
This commit is contained in:
Sergey Prigogin 2014-08-05 12:16:30 -07:00
parent 42f0351e86
commit f0a593fbb7
2 changed files with 7 additions and 27 deletions

View file

@ -37,9 +37,11 @@ public class ParseError extends Error {
TIMEOUT_OR_CANCELLED, TIMEOUT_OR_CANCELLED,
/** /**
* The user preference for {@link CCorePreferenceConstants#SCALABILITY_LIMIT_TOKENS_PER_TU} is enabled * The user preference for
* and more than {@link CCorePreferenceConstants#SCALABILITY_MAXIMUM_TOKENS} tokens were created while * {@link org.eclipse.cdt.core.CCorePreferenceConstants#SCALABILITY_LIMIT_TOKENS_PER_TU} is
* parsing a single translation unit. * enabled and more than
* {@link org.eclipse.cdt.core.CCorePreferenceConstants#SCALABILITY_MAXIMUM_TOKENS} tokens
* were created while parsing a single translation unit.
* @since 5.7 * @since 5.7
*/ */
TOO_MANY_TOKENS TOO_MANY_TOKENS

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others. * Copyright (c) 2000, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -57,50 +57,31 @@ public class ProblemLocation implements IProblemLocation {
((IPersistableProblem) problem).getMarkerType() : ICModelMarker.C_MODEL_PROBLEM_MARKER; ((IPersistableProblem) problem).getMarkerType() : ICModelMarker.C_MODEL_PROBLEM_MARKER;
} }
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.ui.text.correction.IProblemLocation#getProblemId()
*/
@Override @Override
public int getProblemId() { public int getProblemId() {
return fId; return fId;
} }
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.ui.text.correction.IProblemLocation#getProblemArguments()
*/
@Override @Override
public String[] getProblemArguments() { public String[] getProblemArguments() {
return fArguments; return fArguments;
} }
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.ui.text.correction.IProblemLocation#getLength()
*/
@Override @Override
public int getLength() { public int getLength() {
return fLength; return fLength;
} }
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.ui.text.correction.IProblemLocation#getOffset()
*/
@Override @Override
public int getOffset() { public int getOffset() {
return fOffset; return fOffset;
} }
/* (non-Javadoc)
* @see org.eclipse.jdt.ui.text.java.IProblemLocation#isError()
*/
@Override @Override
public boolean isError() { public boolean isError() {
return fIsError; return fIsError;
} }
/* (non-Javadoc)
* @see org.eclipse.jdt.ui.text.java.IProblemLocation#getMarkerType()
*/
@Override @Override
public String getMarkerType() { public String getMarkerType() {
return fMarkerType; return fMarkerType;
@ -122,16 +103,13 @@ public class ProblemLocation implements IProblemLocation {
} }
private String getErrorCode(int code) { private String getErrorCode(int code) {
StringBuffer buf= new StringBuffer(); StringBuilder buf= new StringBuilder();
if ((code & IProblem.SCANNER_RELATED) != 0) { if ((code & IProblem.SCANNER_RELATED) != 0) {
buf.append("ScannerRelated + "); //$NON-NLS-1$ buf.append("ScannerRelated + "); //$NON-NLS-1$
} }
if ((code & IProblem.PREPROCESSOR_RELATED) != 0) { if ((code & IProblem.PREPROCESSOR_RELATED) != 0) {
buf.append("PreprocessorRelated + "); //$NON-NLS-1$ buf.append("PreprocessorRelated + "); //$NON-NLS-1$
} }
if ((code & IProblem.SEMANTICS_RELATED) != 0) {
buf.append("SemanticsRelated + "); //$NON-NLS-1$
}
if ((code & IProblem.INTERNAL_RELATED) != 0) { if ((code & IProblem.INTERNAL_RELATED) != 0) {
buf.append("Internal + "); //$NON-NLS-1$ buf.append("Internal + "); //$NON-NLS-1$
} }