equal
deleted
inserted
replaced
85 //the following line might cause hang if there is System.out.println(testObj) |
85 //the following line might cause hang if there is System.out.println(testObj) |
86 //called by other threads. |
86 //called by other threads. |
87 System.out.println("In test()."); |
87 System.out.println("In test()."); |
88 } |
88 } |
89 |
89 |
90 synchronized public String toString() { |
90 public synchronized String toString() { |
91 System.out.println("Calling toString\n"); |
91 System.out.println("Calling toString\n"); |
92 return mStr; |
92 return mStr; |
93 } |
93 } |
94 } |
94 } |