package com.meituan.sample.robusttest;

import android.util.Log;

/**
 * Created by mivanzhang on 16/10/21.
 */
public class NoField {
    @Override
    public int hashCode() {
        Log.d("robusttest", "in hashCode()");
        return super.hashCode();
    }

    @Override
    public String toString() {

        getName();
        Log.d("robusttest", "after getName()");
        return super.toString();
    }

    private NoField getName() {
        this.hashCode();
        JustTest s = new JustTest();
        s.test(this);
        Log.d("robusttest", "after hashCode()");
        return StaticInner.instance;
    }

    static class StaticInner {
        static NoField instance = new NoField();
    }
}

@@ -37,34 +37,8 @@
 t;%0A%0A
-import android.util.Log;%0A%0A
 /**%0A
@@ -148,54 +148,8 @@
 ) %7B%0A
-        Log.d(%22robusttest%22, %22in hashCode()%22);%0A
     
@@ -234,75 +234,8 @@
  %7B%0A%0A
-        getName();%0A        Log.d(%22robusttest%22, %22after getName()%22);%0A
     
@@ -360,24 +360,24 @@
 JustTest();%0A
+
         s.te
@@ -390,57 +390,8 @@
 s);%0A
-        Log.d(%22robusttest%22, %22after hashCode()%22);%0A
     

clear logs