mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
Use Class.forName().
This commit is contained in:
parent
36d2f67998
commit
ec79111551
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ public class ErrorParserManager extends OutputStream {
|
||||||
while (tok.hasMoreElements()) {
|
while (tok.hasMoreElements()) {
|
||||||
String clName = tok.nextToken();
|
String clName = tok.nextToken();
|
||||||
try {
|
try {
|
||||||
IErrorParser parser = (IErrorParser) getClass().forName(clName).newInstance();
|
IErrorParser parser = (IErrorParser) Class.forName(clName).newInstance();
|
||||||
fErrorParsers.add(parser);
|
fErrorParsers.add(parser);
|
||||||
}
|
}
|
||||||
catch (ClassNotFoundException e) {
|
catch (ClassNotFoundException e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue