From 3ed11168c5a778d0f54de19a341f96f6e55767be Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 19 Jul 2024 07:15:53 +0200 Subject: android: Make constant final Addresses this warning/suggestion shown in Android Studio: > Field 'LOGTAG' may be 'final' And: Drop an unused import. Change-Id: I6ce730a80690c2701a91cc7900cc801b370dc605 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170714 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- android/source/src/java/org/libreoffice/SettingsActivity.java | 1 - android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/android/source/src/java/org/libreoffice/SettingsActivity.java b/android/source/src/java/org/libreoffice/SettingsActivity.java index 39102aee5a0f..db715cf8b0cc 100644 --- a/android/source/src/java/org/libreoffice/SettingsActivity.java +++ b/android/source/src/java/org/libreoffice/SettingsActivity.java @@ -8,7 +8,6 @@ */ package org.libreoffice; -import android.content.SharedPreferences; import android.os.Bundle; import androidx.fragment.app.FragmentActivity; import androidx.preference.PreferenceFragmentCompat; diff --git a/android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java b/android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java index a616fcc4da43..6900532515e0 100644 --- a/android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java +++ b/android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java @@ -17,7 +17,7 @@ import java.nio.ByteBuffer; * A Cairo image that simply saves a buffer of pixel data. */ public class BufferedCairoImage extends CairoImage { - private static String LOGTAG = "GeckoBufferedCairoImage"; + private static final String LOGTAG = "GeckoBufferedCairoImage"; private ByteBuffer mBuffer; private IntSize mSize; private int mFormat; -- cgit