diff options
author | David Morrissey <davemorrissey@gmail.com> | 2017-12-13 08:14:12 +0000 |
---|---|---|
committer | David Morrissey <davemorrissey@gmail.com> | 2017-12-13 08:14:12 +0000 |
commit | ab56d7cced1662f6e428dcb27b904ef34a484f45 (patch) | |
tree | c437a95972ef8e404a542258876e605c7e9e0cbf | |
parent | 81814504d56a6582782af3ebb243f200354071f8 (diff) | |
download | subsampling-scale-image-view-ab56d7cced1662f6e428dcb27b904ef34a484f45.tar.gz |
Cleaned up empty method warnings
-rw-r--r-- | library/src/main/java/com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/library/src/main/java/com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.java b/library/src/main/java/com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.java index f1f4fab..3a1410e 100644 --- a/library/src/main/java/com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.java +++ b/library/src/main/java/com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.java @@ -2182,6 +2182,7 @@ public class SubsamplingScaleImageView extends View { * @param vTarget target object for result. The same instance is also returned. * @return view coordinates. This is the same instance passed to the vTarget param. */ + @SuppressWarnings("UnusedReturnValue") public final PointF sourceToViewCoord(PointF sxy, PointF vTarget) { return sourceToViewCoord(sxy.x, sxy.y, vTarget); } @@ -2204,14 +2205,13 @@ public class SubsamplingScaleImageView extends View { /** * Convert source rect to screen rect, integer values. */ - private Rect sourceToViewRect(Rect sRect, Rect vTarget) { + private void sourceToViewRect(Rect sRect, Rect vTarget) { vTarget.set( (int)sourceToViewX(sRect.left), (int)sourceToViewY(sRect.top), (int)sourceToViewX(sRect.right), (int)sourceToViewY(sRect.bottom) ); - return vTarget; } /** @@ -2590,6 +2590,7 @@ public class SubsamplingScaleImageView extends View { * next draw. This is triggered at the same time as {@link OnImageEventListener#onReady()} but * allows a subclass to receive this event without using a listener. */ + @SuppressWarnings("EmptyMethod") protected void onReady() { } @@ -2606,6 +2607,7 @@ public class SubsamplingScaleImageView extends View { /** * Called once when the full size image or its base layer tiles have been loaded. */ + @SuppressWarnings("EmptyMethod") protected void onImageLoaded() { } @@ -3063,6 +3065,7 @@ public class SubsamplingScaleImageView extends View { * these events are triggered if the activity is paused, the image is swapped, or in other cases * where the view's internal state gets wiped or draw events stop. */ + @SuppressWarnings("EmptyMethod") public interface OnAnimationEventListener { /** @@ -3096,6 +3099,7 @@ public class SubsamplingScaleImageView extends View { /** * An event listener, allowing subclasses and activities to be notified of significant events. */ + @SuppressWarnings("EmptyMethod") public interface OnImageEventListener { /** @@ -3168,6 +3172,7 @@ public class SubsamplingScaleImageView extends View { * this listener will be called on the UI thread and may be called very frequently - your * implementation should return quickly. */ + @SuppressWarnings("EmptyMethod") public interface OnStateChangedListener { /** |