Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72146176 authored by Jean Chalard's avatar Jean Chalard
Browse files

Remove a slew of Eclipse warnings.

Change-Id: I03236386aea13fbd4fb8eaeee18e0008aa136502
parent ab96376c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -873,6 +873,7 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy {
                keyPreview, ViewLayoutUtils.newLayoutParam(mPreviewPlacer, 0, 0));
    }

    @SuppressWarnings("deprecation") // setBackgroundDrawable is replaced by setBackground in API16
    @Override
    public void showKeyPreview(PointerTracker tracker) {
        if (!mShowKeyPreviewPopup) return;
+0 −2
Original line number Diff line number Diff line
@@ -21,8 +21,6 @@ import android.util.Log;

import com.android.inputmethod.keyboard.Keyboard;
import com.android.inputmethod.latin.Constants;
import com.android.inputmethod.latin.ResearchLogger;
import com.android.inputmethod.latin.define.ProductionFlag;

/**
 * Keyboard state machine.
+3 −1
Original line number Diff line number Diff line
@@ -514,8 +514,10 @@ public class ExpandableDictionary extends Dictionary {

    /**
     * Adds bigrams to the in-memory trie structure that is being used to retrieve any word
     * @param word1 the first word of this bigram
     * @param word2 the second word of this bigram
     * @param frequency frequency for this bigram
     * @param addFrequency if true, it adds to current frequency, else it overwrites the old value
     * @param fcp an instance of ForgettingCurveParams to use for decay policy
     * @return returns the final bigram frequency
     */
    private int setBigramAndGetFrequency(
+1 −0
Original line number Diff line number Diff line
@@ -747,6 +747,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        if (TRACE) Debug.startMethodTracing("/data/trace/latinime");
    }

    @Override
    public void onTargetApplicationKnown(final ApplicationInfo info) {
        mTargetApplicationInfo = info;
    }
+2 −2
Original line number Diff line number Diff line
@@ -101,13 +101,13 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
    private static class NullOutputStream extends OutputStream {
        /** {@inheritDoc} */
        @Override
        public void write(byte[] buffer, int offset, int count) throws IOException {
        public void write(byte[] buffer, int offset, int count) {
            // nop
        }

        /** {@inheritDoc} */
        @Override
        public void write(byte[] buffer) throws IOException {
        public void write(byte[] buffer) {
            // nop
        }

Loading