Replacing R.getMessage by ToolErrorReporter.getMessage as the method is static.

git-svn-id: svn://10.0.0.236/trunk@179293 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor%mir2.org 2005-08-30 09:50:01 +00:00
parent 179d4b1dfa
commit 0a3c4f84f5
2 changed files with 3 additions and 3 deletions

View File

@ -500,7 +500,7 @@ public class Main {
process_file(args[0]);
}
catch (IOException ex) {
print_error(ToolErrorReporter..getMessage(
print_error(ToolErrorReporter.getMessage(
"msg.idswitch.io_error", ex.toString()));
return -1;
}

View File

@ -382,8 +382,8 @@ public class SwitchGenerator {
StringBuffer sb = new StringBuffer();
int line1 = a.getLineNumber(), line2 = b.getLineNumber();
if (line2 > line1) { int tmp = line1; line1 = line2; line2 = tmp; }
String error_text = R.getMessage("msg.idswitch.same_string",
a.id, new Integer(line2));
String error_text = ToolErrorReporter.getMessage(
"msg.idswitch.same_string", a.id, new Integer(line2));
return R.runtimeError(error_text, source_file, line1, null, 0);
}