mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-18 11:42:17 +01:00
DroidFish: Fixed some lint warnings.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package net.margaritov.preference.colorpicker;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
@@ -40,6 +41,7 @@ import android.view.View;
|
||||
* setAlphaSliderVisible(boolean) to true.
|
||||
* @author Daniel Nilsson
|
||||
*/
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
public class ColorPickerView extends View {
|
||||
|
||||
private final static int PANEL_SAT_VAL = 0;
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
package org.petero.droidfish.book;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import java.security.SecureRandom;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
@@ -49,6 +50,7 @@ public final class DroidBook {
|
||||
return TextIO.moveToUCIString(move) + " (" + weight + ")";
|
||||
}
|
||||
}
|
||||
@SuppressLint("TrulyRandom")
|
||||
private Random rndGen = new SecureRandom();
|
||||
|
||||
private IOpeningBook externalBook = new NullBook();
|
||||
|
||||
@@ -32,8 +32,10 @@ import org.petero.droidfish.gamelogic.Position;
|
||||
import org.petero.droidfish.gamelogic.TextIO;
|
||||
import org.petero.droidfish.gamelogic.UndoInfo;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.util.FloatMath;
|
||||
|
||||
@SuppressLint("UseSparseArrays")
|
||||
final class InternalBook implements IOpeningBook {
|
||||
private static HashMap<Long, ArrayList<BookEntry>> bookMap;
|
||||
private static int numBookMoves = -1;
|
||||
|
||||
Reference in New Issue
Block a user