package advancedandroid.annotationsamples;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.MainThread;
import android.support.annotation.NonNull;
import android.support.annotation.WorkerThread;
import android.view.View;

public class ThreadSampleActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        backgroundMethod();
        new AnnotationTest().callBackgroundMethod();
        mainThreadMethod();
        new Thread(new Runnable() {
            @Override
            public void run() {
                mainThreadMethod();
            }
        }).start();
        final View view = new View(this);
        view.setVisibility(View.GONE);
    }

    @MainThread
    private void mainThreadMethod() {

    }

    @WorkerThread
    private void backgroundMethod() {
        System.out.println("test");
    }
}

@@ -746,89 +746,8 @@
 ();%0A
-        final View view = new View(this);%0A        view.setVisibility(View.GONE);%0A
     

delete disuse code