Skip to content

Commit

Permalink
fixed findbugs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rfecher committed Aug 30, 2018
1 parent a3f02d9 commit 78be43d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.PrecisionModel;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import mil.nga.giat.geowave.adapter.raster.FitToIndexGridCoverage;
import mil.nga.giat.geowave.adapter.raster.RasterUtils;
import mil.nga.giat.geowave.adapter.raster.Resolution;
Expand Down Expand Up @@ -454,6 +455,7 @@ public RasterDataAdapter(
init();
}

@SuppressFBWarnings
private static void staticInit() {
// check outside of synchronized block to optimize performance
if (!classInit) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.google.common.primitives.Ints;
import com.google.protobuf.InvalidProtocolBufferException;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import mil.nga.giat.geowave.adapter.raster.adapter.RasterDataAdapter;
import mil.nga.giat.geowave.adapter.raster.protobuf.SampleModelProtos;

Expand Down Expand Up @@ -392,8 +393,8 @@ private long getBufferSize() {

long size = 0;
if (maxBandOff >= 0) size += maxBandOff + 1;
if (pixelStride > 0) size += pixelStride * (width - 1);
if (scanlineStride > 0) size += scanlineStride * (height - 1);
if (pixelStride > 0) size += (long) pixelStride * (width - 1);
if (scanlineStride > 0) size += (long) scanlineStride * (height - 1);
return size;
}

Expand Down Expand Up @@ -1563,6 +1564,7 @@ public double[] getPixels(
* Returns a <code>String</code> containing the values of all valid
* fields.
*/
@SuppressFBWarnings
public String toString() {
String ret = "ComponentSampleModelJAI: " + " dataType=" + this.getDataType() + " numBands="
+ this.getNumBands() + " width=" + this.getWidth() + " height=" + this.getHeight()
Expand Down

0 comments on commit 78be43d

Please sign in to comment.