Changeset 6988


Ignore:
Timestamp:
09/27/10 13:35:37 (9 years ago)
Author:
melissa
Message:

Fixed a couple of issues exposed by Findbugs. See #546.

Location:
trunk/components
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/tiff/TiffRational.java

    r6881 r6988  
    9999 
    100100  /** Indicates whether some other object is "equal to" this one. */ 
    101   public boolean equals(TiffRational o) { 
    102     return o != null && compareTo(o) == 0; 
     101  public boolean equals(Object o) { 
     102    return o != null && o instanceof TiffRational && 
     103      compareTo((TiffRational) o) == 0; 
    103104  } 
    104105 
  • trunk/components/slim-plotter/src/loci/slim/TwoDPane.java

    r6881 r6988  
    208208    } 
    209209    final DataReferenceImpl curveRef = new DataReferenceImpl("curve"); 
    210     RealTupleType xy = new RealTupleType(types.xType, types.yType); 
     210    //RealTupleType xy = new RealTupleType(types.xType, types.yType); 
    211211    UnionSet dummyCurve = new UnionSet(new Gridded2DSet[] { 
    212212      new Gridded2DSet(types.xy, new float[][] {{0}, {0}}, 1) 
Note: See TracChangeset for help on using the changeset viewer.