summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-11-27 10:49:32 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2023-11-27 14:04:04 +0100
commit808a94d85928545d8c8128f52116509c1ff8c121 (patch)
treecdb5d3df90fa36c7ea710d99dc26c022cb31da59 /android
parentb6f274f3d0a415e84cda45f5929d89130974ee2d (diff)
android: Make CalcHeaderCell fields final
Change-Id: I7e14145569428a2803f9376cf719e524aa8963a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159987 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'android')
-rw-r--r--android/source/src/java/org/libreoffice/canvas/CalcHeaderCell.java10
1 files changed, 5 insertions, 5 deletions
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
+}