summaryrefslogtreecommitdiff
path: root/graphics/java
diff options
context:
space:
mode:
author Seigo Nonaka <nona@google.com> 2021-02-24 17:44:35 -0800
committer Seigo Nonaka <nona@google.com> 2021-02-24 17:45:25 -0800
commit4560edffbe78b54a82c085345dd35f57c00211e1 (patch)
tree046d6bccc4347373546752db5c65351c84316052 /graphics/java
parent5c9a0355f8abbbdb549e6eccbc454f98d5f03d94 (diff)
Make Typeface member final
Bug: 179448958 Test: N/A Change-Id: I577eaf9ae5cf209899381c8807b5400119487296
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/Typeface.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/java/android/graphics/Typeface.java b/graphics/java/android/graphics/Typeface.java
index 32c777cf498c..8f631a030f91 100644
--- a/graphics/java/android/graphics/Typeface.java
+++ b/graphics/java/android/graphics/Typeface.java
@@ -174,7 +174,7 @@ public class Typeface {
@UnsupportedAppUsage
public long native_instance;
- private Runnable mCleaner;
+ private final Runnable mCleaner;
/** @hide */
@IntDef(value = {NORMAL, BOLD, ITALIC, BOLD_ITALIC})
@@ -189,9 +189,9 @@ public class Typeface {
/** @hide */ public static final int STYLE_MASK = 0x03;
@UnsupportedAppUsage
- private @Style int mStyle = 0;
+ private @Style final int mStyle;
- private @IntRange(from = 0, to = FontStyle.FONT_WEIGHT_MAX) int mWeight = 0;
+ private @IntRange(from = 0, to = FontStyle.FONT_WEIGHT_MAX) final int mWeight;
// Value for weight and italic. Indicates the value is resolved by font metadata.
// Must be the same as the C++ constant in core/jni/android/graphics/FontFamily.cpp