1 19 20 package edu.umd.cs.findbugs.ba.bcp; 21 22 import edu.umd.cs.findbugs.ba.vna.ValueNumber; 23 24 public class LongOrDoubleLocalVariable implements Variable { 25 private ValueNumber topValue, nextValue; 26 27 public LongOrDoubleLocalVariable(ValueNumber topValue, ValueNumber nextValue) { 28 this.topValue = topValue; 29 this.nextValue = nextValue; 30 } 31 32 public boolean sameAs(Variable other) { 33 if (!(other instanceof LongOrDoubleLocalVariable)) 34 return false; 35 LongOrDoubleLocalVariable otherLongOrDouble = (LongOrDoubleLocalVariable) other; 36 return topValue.equals(otherLongOrDouble.topValue) 37 && nextValue.equals(otherLongOrDouble.nextValue); 38 } 39 } 40 41 | Popular Tags |