mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
break each Class, Field, and Method into separate classes
In order to facilitate making the VM compatible with multiple class libraries, it's useful to separate the VM-specific representation of these classes from the library implementations. This commit introduces VMClass, VMField, and VMMethod for that purpose.
This commit is contained in:
@ -107,15 +107,15 @@ public class Logger {
|
||||
return logger.getLevel();
|
||||
}
|
||||
|
||||
private void log(Level level, Method caller, String message,
|
||||
private void log(Level level, avian.VMMethod caller, String message,
|
||||
Throwable exception) {
|
||||
|
||||
if (level.intValue() < getEffectiveLevel().intValue()) {
|
||||
return;
|
||||
}
|
||||
LogRecord r = new LogRecord
|
||||
(name, caller == null ? "<unknown>" : caller.getName(), level, message,
|
||||
exception);
|
||||
(name, caller == null ? "<unknown>" : Method.getName(caller), level,
|
||||
message, exception);
|
||||
publish(r);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user