package com.greenpixels.birdsofcostarica;

import android.app.Application;
import android.content.Context;
import android.support.annotation.NonNull;

import com.greenpixels.birdsofcostarica.utils.ForegroundUtils;
import com.greenpixels.birdsofcostarica.utils.LogUtils;
import com.squareup.leakcanary.LeakCanary;
import com.squareup.leakcanary.RefWatcher;

import timber.log.Timber;

/**
 * Main App
 *
 * @author PiXeL16
 * @date 5/6/15
 */
public class MainApp extends Application {

    private static MainApp instance;
    private static final String TAG = LogUtils.makeLogTag(MainApp.class);

    // Monitors Memory Leaks
    private RefWatcher refWatcher;


    @Override
    public void onCreate() {
        super.onCreate();
        this.init();
    }

    public void init()
    {
        //RequestManager.init(this);
        ForegroundUtils.init(this);
        //Leak Tracking
        refWatcher = LeakCanary.install(this);
        //Logging
        Timber.plant(new Timber.DebugTree());
    }


    public MainApp() {
        instance = this;
    }

    public static Context getContext() {
        return instance;
    }

    @NonNull
    public static MainApp get(@NonNull Context context) {
        return (MainApp) context.getApplicationContext();
    }

    public static Application getApplication() {
        return instance;
    }

    @NonNull
    public RefWatcher refWatcher() {
        return refWatcher;
    }


}

@@ -1046,32 +1046,45 @@
  = this;%0A    %7D%0A%0A
+    @NonNull%0A
     public stati
@@ -1268,32 +1268,45 @@
 ntext();%0A    %7D%0A%0A
+    @NonNull%0A
     public stati

Add anottations