我认为是因为您有:
public class MultipleOfMilliseconds extends Millisecond// ^^^^^^^^^^^
这是
true:
if(timeSample instanceof Millisecond)
if(timeSample instanceof MultipleOfMillisecond) this.pointsInTime = new MultipleOfMillisecond[nMoments];else if (timeSample instanceof Millisecond) this.pointsInTime = new Millisecond[nMoments];
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)