package com.github.mobile.android;

import static java.util.Arrays.asList;
import android.app.Application;
import android.app.Instrumentation;
import android.content.Context;
import android.util.Log;

import com.google.inject.Module;

import java.util.List;

/**
 * Main GitHub application
 */
public class GitHubApplication extends Application {

    private static final String TAG = "GHA";

    /**
     * Create main application
     */
    public GitHubApplication() {
    }

    /**
     * Create main application
     *
     * @param context
     */
    public GitHubApplication(Context context) {
        attachBaseContext(context);
    }

    /**
     * Create main application
     *
     * @param instrumentation
     */
    public GitHubApplication(Instrumentation instrumentation) {
        attachBaseContext(instrumentation.getTargetContext());
    }

    protected void addApplicationModules(List<Module> modules) {
        Log.i(TAG, "Adding application modules...");
        modules.addAll(asList(new GitHubModule()));
    }
}

@@ -33,47 +33,8 @@
 d;%0A%0A
-import static java.util.Arrays.asList;%0A
 impo
@@ -816,24 +816,88 @@
 ());%0A    %7D%0A%0A
+    /**%0A     * Add modules%0A     *%0A     * @param modules%0A     */%0A
     protecte
@@ -961,17 +961,17 @@
     Log.
-i
+d
 (TAG, %22A
@@ -1025,18 +1025,8 @@
 .add
-All(asList
 (new
@@ -1041,17 +1041,16 @@
 odule())
-)
 ;%0A    %7D%0A

Remove unneeded list creation to add single item