Skip to content

squid:S3052 - Fields should not be initialized to default values #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public boolean isRefreshing() {
private int mTargetPaddingRight;
private int mTargetPaddingLeft;

private int finishRefreshToPauseDuration = 0;
private int finishRefreshToPauseDuration;

public PullToRefreshView(Context context) {
this(context, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ public class SunRefreshView extends BaseRefreshView implements Animatable {
private float mSunLeftOffset;
private float mSunTopOffset;

private float mPercent = 0.0f;
private float mRotate = 0.0f;
private float mPercent;
private float mRotate;

private Bitmap mSky;
private Bitmap mSun;
private Bitmap mTown;

private boolean isRefreshing = false;
private boolean isRefreshing;

public SunRefreshView(Context context, final PullToRefreshView parent) {
super(context, parent);
Expand Down
4 changes: 2 additions & 2 deletions Phoenix/src/main/java/com/yalantis/phoenix/util/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public final class Logger {
* Set true or false if you want read logs or not
*/
private static boolean logEnabled_d = true;
private static boolean logEnabled_i = false;
private static boolean logEnabled_e = false;
private static boolean logEnabled_i;
private static boolean logEnabled_e;

private Logger () {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class PullToRefreshLayout extends ViewGroup {
private int mTargetPaddingBottom;
private int mTargetPaddingRight;
private int mTargetPaddingLeft;
private int finishRefreshToPauseDuration = 0;
private int finishRefreshToPauseDuration;

private int mHeaderViewIndex;
public PullToRefreshLayout(Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ public class WaterDropListView extends ListView implements OnScrollListener,Wate
private WaterDropListViewFooter mFooterView;
private boolean mEnablePullLoad;
private boolean mPullLoading;
private boolean mIsFooterReady = false;
private boolean mIsFooterReady;

// total list items, used to detect is at the bottom of listview.
private int mTotalItemCount;

// for mScroller, scroll back from header or footer.
private ScrollBack mScrollBack;
private boolean isTouchingScreen = false;//手指是否触摸屏幕
private boolean isTouchingScreen;//手指是否触摸屏幕

// private int mStretchHeight; // view开始变形的高度
// private int mReadyHeight; // view由stretch变成ready的高度
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Created by limxing on 16/1/7.
*/
public class LoadView extends ImageView {
private float degrees = 0f;
private float degrees;
private Matrix max;
private int width;
private int height;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ public boolean isPullRefreshing() {
return mPullRefreshing;
}

private boolean mPullRefreshing = false; // is refreashing.
private boolean mPullRefreshing; // is refreashing.

// -- footer view
private XListViewFooter mFooterView;
private boolean mEnablePullLoad;
private boolean mPullLoading;
private boolean mIsFooterReady = false;
private boolean mIsFooterReady;

// total list items, used to detect is at the bottom of listview.
private int mTotalItemCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public final class Logger {
* Set true or false if you want read logs or not
*/
private static boolean logEnabled_d = true;
private static boolean logEnabled_i = false;
private static boolean logEnabled_e = false;
private static boolean logEnabled_i;
private static boolean logEnabled_e;

private Logger() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class JellyView extends View {

Paint paint;

private int minimumHeight = 0;
private int minimumHeight;

private int jellyHeight;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,9 @@ private static class Ring {

private final Callback mCallback;

private float mStartTrim = 0.0f;
private float mEndTrim = 0.0f;
private float mRotation = 0.0f;
private float mStartTrim;
private float mEndTrim;
private float mRotation;
private float mStrokeWidth = 5.0f;
private float mStrokeInset = 2.5f;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class SwipeRefreshTestLayout extends ViewGroup implements NestedScrolling
*/
private View mTarget; // the target of the gesture
private OnRefreshListener mListener;
private boolean mRefreshing = false;
private boolean mRefreshing;
private int mTouchSlop;
/**
* 触发刷新的下拉高度<br>
Expand All @@ -133,7 +133,7 @@ public class SwipeRefreshTestLayout extends ViewGroup implements NestedScrolling
*/
private int mCurrentTargetOffsetTop;
// Whether or not the starting offset has been determined.
private boolean mOriginalOffsetCalculated = false;
private boolean mOriginalOffsetCalculated;

private float mInitialMotionY;
private float mInitialDownY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public final class Logger {
* Set true or false if you want read logs or not
*/
private static boolean logEnabled_d = true;
private static boolean logEnabled_i = false;
private static boolean logEnabled_e = false;
private static boolean logEnabled_i;
private static boolean logEnabled_e;

private Logger() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ public class RefreshView extends Drawable implements Drawable.Callback, Animatab
private int mLeftCloudsWidthCenter;
private int mLeftCloudsHeightCenter;

private float mPercent = 0.0f;
private float mPercent;

private Bitmap mJet;
private Bitmap mFrontClouds;
private Bitmap mLeftClouds;
private Bitmap mRightClouds;

private boolean isRefreshing = false;
private boolean isRefreshing;
private float mLoadingAnimationTime;
private float mLastAnimationTime;

Expand Down