Commit 3daba446 authored by Lubomir Bulej's avatar Lubomir Bulej

Create AnalysisResolver without context and streamline log access

parent f792d4ba
......@@ -19,7 +19,7 @@ import ch.usi.dag.util.logging.Logger;
*/
public class SHVMContext {
private final Logger __logger;
private final Logger __log;
private final ShadowClassTable __shadowClassTable;
......@@ -37,11 +37,11 @@ public class SHVMContext {
* based magic if more complicated initialization
* will be required.
*/
SHVMContext(final Logger logger) {
SHVMContext(final Logger log) {
__shadowClassTable = new ShadowClassTable (this);
__shadowObjectTable = new ShadowObjectTable (this);
__analysisResolver = new AnalysisResolver (this);
__logger = logger;
__analysisResolver = new AnalysisResolver ();
__log = log;
}
......@@ -76,9 +76,8 @@ public class SHVMContext {
* Gets the {@link Logger}
* @return An registered instance of {@link Logger}
*/
public Logger getLogger()
{
return __logger;
public Logger log () {
return __log;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment