mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Bug 317067: typo in comments
This commit is contained in:
parent
7823edaff4
commit
f912261f97
1 changed files with 8 additions and 5 deletions
|
@ -23,7 +23,7 @@ import org.eclipse.cdt.codan.core.model.AbstractCheckerWithProblemPreferences;
|
||||||
* they all differently "named".
|
* they all differently "named".
|
||||||
* For example checker for parameter names shadowing would have two boolean
|
* For example checker for parameter names shadowing would have two boolean
|
||||||
* options:
|
* options:
|
||||||
* "check contructors" and
|
* "check constructors" and
|
||||||
* "check setters". In this case you use this type.
|
* "check setters". In this case you use this type.
|
||||||
* {@link AbstractCheckerWithProblemPreferences} class has map as default top
|
* {@link AbstractCheckerWithProblemPreferences} class has map as default top
|
||||||
* level parameter preference.
|
* level parameter preference.
|
||||||
|
@ -35,7 +35,7 @@ public class MapProblemPreference extends AbstractProblemPreference implements
|
||||||
protected LinkedHashMap<String, IProblemPreference> hash = new LinkedHashMap<String, IProblemPreference>();
|
protected LinkedHashMap<String, IProblemPreference> hash = new LinkedHashMap<String, IProblemPreference>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constuctor
|
* Default constructor
|
||||||
*/
|
*/
|
||||||
public MapProblemPreference() {
|
public MapProblemPreference() {
|
||||||
super();
|
super();
|
||||||
|
@ -166,10 +166,12 @@ public class MapProblemPreference extends AbstractProblemPreference implements
|
||||||
String key = tokenizer.sval;
|
String key = tokenizer.sval;
|
||||||
token = tokenizer.nextToken();
|
token = tokenizer.nextToken();
|
||||||
if (token != '=')
|
if (token != '=')
|
||||||
throw new IllegalArgumentException(String.valueOf((char) token));
|
throw new IllegalArgumentException(
|
||||||
|
String.valueOf((char) token));
|
||||||
token = tokenizer.nextToken();
|
token = tokenizer.nextToken();
|
||||||
if (token != '>')
|
if (token != '>')
|
||||||
throw new IllegalArgumentException(String.valueOf((char) token));
|
throw new IllegalArgumentException(
|
||||||
|
String.valueOf((char) token));
|
||||||
IProblemPreference desc = getChildDescriptor(key);
|
IProblemPreference desc = getChildDescriptor(key);
|
||||||
if (desc != null && desc instanceof AbstractProblemPreference) {
|
if (desc != null && desc instanceof AbstractProblemPreference) {
|
||||||
((AbstractProblemPreference) desc).importValue(tokenizer);
|
((AbstractProblemPreference) desc).importValue(tokenizer);
|
||||||
|
@ -179,7 +181,8 @@ public class MapProblemPreference extends AbstractProblemPreference implements
|
||||||
if (token == '}')
|
if (token == '}')
|
||||||
break;
|
break;
|
||||||
if (token != ',')
|
if (token != ',')
|
||||||
throw new IllegalArgumentException(String.valueOf((char) token));
|
throw new IllegalArgumentException(
|
||||||
|
String.valueOf((char) token));
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new IllegalArgumentException(e);
|
throw new IllegalArgumentException(e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue