diff options
| author | 2021-02-26 06:00:42 +0000 | |
|---|---|---|
| committer | 2021-02-26 06:00:42 +0000 | |
| commit | 8ae6cd8c72c00b9f0a65b1a1b0fc9d6cf8efebae (patch) | |
| tree | da83e7adb31f8d19c986e1033a9066639c464e7c | |
| parent | fb6ea1e786c57306ad7d0535682468987d9da1a7 (diff) | |
| parent | 4560edffbe78b54a82c085345dd35f57c00211e1 (diff) | |
Merge "Make Typeface member final" into sc-dev
| -rw-r--r-- | graphics/java/android/graphics/Typeface.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/java/android/graphics/Typeface.java b/graphics/java/android/graphics/Typeface.java index ac5b4e92c054..c80788269c24 100644 --- a/graphics/java/android/graphics/Typeface.java +++ b/graphics/java/android/graphics/Typeface.java @@ -174,7 +174,7 @@ public class Typeface { @UnsupportedAppUsage public final 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 |