1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 04:15:35 +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,
/**
* The user preference for {@link CCorePreferenceConstants#SCALABILITY_LIMIT_TOKENS_PER_TU} is enabled
* and more than {@link CCorePreferenceConstants#SCALABILITY_MAXIMUM_TOKENS} tokens were created while
* parsing a single translation unit.
* The user preference for
* {@link org.eclipse.cdt.core.CCorePreferenceConstants#SCALABILITY_LIMIT_TOKENS_PER_TU} is
* 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
*/
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
* are made available under the terms of the Eclipse Public License v1.0
* 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;
}
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.ui.text.correction.IProblemLocation#getProblemId()
*/
@Override
public int getProblemId() {
return fId;
}
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.ui.text.correction.IProblemLocation#getProblemArguments()
*/
@Override
public String[] getProblemArguments() {
return fArguments;
}
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.ui.text.correction.IProblemLocation#getLength()
*/
@Override
public int getLength() {
return fLength;
}
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.ui.text.correction.IProblemLocation#getOffset()
*/
@Override
public int getOffset() {
return fOffset;
}
/* (non-Javadoc)
* @see org.eclipse.jdt.ui.text.java.IProblemLocation#isError()
*/
@Override
public boolean isError() {
return fIsError;
}
/* (non-Javadoc)
* @see org.eclipse.jdt.ui.text.java.IProblemLocation#getMarkerType()
*/
@Override
public String getMarkerType() {
return fMarkerType;
@ -122,16 +103,13 @@ public class ProblemLocation implements IProblemLocation {
}
private String getErrorCode(int code) {
StringBuffer buf= new StringBuffer();
StringBuilder buf= new StringBuilder();
if ((code & IProblem.SCANNER_RELATED) != 0) {
buf.append("ScannerRelated + "); //$NON-NLS-1$
}
if ((code & IProblem.PREPROCESSOR_RELATED) != 0) {
buf.append("PreprocessorRelated + "); //$NON-NLS-1$
}
if ((code & IProblem.SEMANTICS_RELATED) != 0) {
buf.append("SemanticsRelated + "); //$NON-NLS-1$
}
if ((code & IProblem.INTERNAL_RELATED) != 0) {
buf.append("Internal + "); //$NON-NLS-1$
}