package org.granchi.hollywood.android;

import org.granchi.hollywood.HollywoodApplication;
import org.granchi.hollywood.Model;
import org.granchi.hollywood.ModelExceptionHandler;

import timber.log.Timber;

/**
 * The real HollywoodApplication to be used by the HollywoodAndroidApplication delegate.
 *
 * @author serandel
 */
// TODO creation parameters
public class HollywoodAndroidApplicationCompanion extends
                                                  HollywoodApplication {
    private final HollywoodAndroidApplication app;

    /**
     * Constructor.
     *
     * @param app              HollywoodAndroidApplication, can't be null
     * @param initialModel     initial Model, can't be null
     * @param exceptionHandler handler for Exceptions during Model.actUpon, can be null to just end
     *                         the app if it
     */
    public HollywoodAndroidApplicationCompanion(HollywoodAndroidApplication app,
                                                Model initialModel,
                                                ModelExceptionHandler exceptionHandler) {
        super(initialModel, exceptionHandler);

        if (app == null) {
            throw new NullPointerException();
        }

        // No logError should happen in the constructor, it can wait till run()
        this.app = app;
    }

    @Override
    protected void logWarning(String msg) {
        Timber.w(msg);

    }

    @Override
    protected void logError(String msg, Throwable throwable) {
        Timber.e(throwable, msg);

        app.showError(msg);
    }

    @Override
    protected void logInfo(String msg) {
        Timber.i(msg);
    }

    @Override
    protected void logDebug(String msg) {
        Timber.d(msg);
    }
}

@@ -33,16 +33,52 @@
 droid;%0A%0A
+import org.granchi.hollywood.Actor;%0A
 import o
@@ -120,16 +120,16 @@
 cation;%0A
-
 import o
@@ -209,16 +209,46 @@
 ndler;%0A%0A
+import java.util.Collection;%0A%0A
 import t
@@ -758,32 +758,113 @@
 , can't be null%0A
+     * @param actors           Actors of the application, can't be null or empty%0A
      * @param ex
@@ -1149,16 +1149,90 @@
 lModel,%0A
+                                                Collection%3CActor%3E actors,%0A
         
@@ -1309,24 +1309,24 @@
 nHandler) %7B%0A
-
         supe
@@ -1340,16 +1340,24 @@
 alModel,
+ actors,
  excepti

Fix compilation error