From 808a94d85928545d8c8128f52116509c1ff8c121 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Mon, 27 Nov 2023 10:49:32 +0100 Subject: android: Make CalcHeaderCell fields final Change-Id: I7e14145569428a2803f9376cf719e524aa8963a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159987 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- .../source/src/java/org/libreoffice/canvas/CalcHeaderCell.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'android') diff --git a/android/source/src/java/org/libreoffice/canvas/CalcHeaderCell.java b/android/source/src/java/org/libreoffice/canvas/CalcHeaderCell.java index c1f8e74e7ba2..1b2db6f65796 100644 --- a/android/source/src/java/org/libreoffice/canvas/CalcHeaderCell.java +++ b/android/source/src/java/org/libreoffice/canvas/CalcHeaderCell.java @@ -8,10 +8,10 @@ import android.graphics.RectF; import android.text.TextPaint; public class CalcHeaderCell extends CommonCanvasElement { - private TextPaint mTextPaint = new TextPaint(); - private Paint mBgPaint = new Paint(); - private RectF mBounds; - private String mText; + private final TextPaint mTextPaint = new TextPaint(); + private final Paint mBgPaint = new Paint(); + private final RectF mBounds; + private final String mText; public CalcHeaderCell(float left, float top, float width, float height, String text, boolean selected) { mBounds = new RectF(left, top, left + width, top + height); @@ -51,4 +51,4 @@ public class CalcHeaderCell extends CommonCanvasElement { canvas.drawRect(mBounds, mBgPaint); canvas.drawText(mText, mBounds.left, mBounds.bottom, mTextPaint); } -} \ No newline at end of file +} -- cgit