5 |
|
*/ |
6 |
|
|
7 |
|
package jsr166e; |
8 |
– |
import java.io.IOException; |
8 |
|
import java.io.Serializable; |
10 |
– |
import java.io.ObjectInputStream; |
11 |
– |
import java.io.ObjectOutputStream; |
9 |
|
|
10 |
|
/** |
11 |
|
* One or more variables that together maintain a running {@code double} |
72 |
|
|
73 |
|
/** |
74 |
|
* Returns the current maximum. The returned value is |
75 |
< |
* <em>NOT</em> an atomic snapshot: invocation in the absence of |
75 |
> |
* <em>NOT</em> an atomic snapshot; invocation in the absence of |
76 |
|
* concurrent updates returns an accurate result, but concurrent |
77 |
|
* updates that occur while the value is being calculated might |
78 |
|
* not be incorporated. |
182 |
|
s.writeDouble(max()); |
183 |
|
} |
184 |
|
|
185 |
< |
private void readObject(ObjectInputStream s) |
186 |
< |
throws IOException, ClassNotFoundException { |
185 |
> |
private void readObject(java.io.ObjectInputStream s) |
186 |
> |
throws java.io.IOException, ClassNotFoundException { |
187 |
|
s.defaultReadObject(); |
188 |
|
busy = 0; |
189 |
|
cells = null; |