Skip to content

Commit

Permalink
Rename ShadowMatrix.describe() to getDescription.
Browse files Browse the repository at this point in the history
  • Loading branch information
xian committed Nov 20, 2016
1 parent a204519 commit caa0e55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.res.ResName;
import org.robolectric.util.ReflectionHelpers;

import java.io.FileDescriptor;
Expand Down Expand Up @@ -301,7 +300,7 @@ public static Bitmap createBitmap(Bitmap src, int x, int y, int width, int heigh
shadowBitmap.appendDescription(" at (" + x + "," + y + ")");
shadowBitmap.appendDescription(" with width " + width + " and height " + height);
if (matrix != null) {
shadowBitmap.appendDescription(" using matrix " + shadowOf(matrix).describe());
shadowBitmap.appendDescription(" using matrix " + shadowOf(matrix).getDescription());
}
if (filter) {
shadowBitmap.appendDescription(" with filter");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) {
describeBitmap(bitmap, paint);

appendDescription(" transformed by " + shadowOf(matrix).describe());
appendDescription(" transformed by " + shadowOf(matrix).getDescription());
}

@Implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public int hashCode() {
return Objects.hashCode(mMatrix);
}

public String describe() {
public String getDescription() {
return "Matrix[pre=" + preOps + ", set=" + setOps + ", post=" + postOps + "]";
}

Expand Down

0 comments on commit caa0e55

Please sign in to comment.