Skip to content

Commit

Permalink
suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiz committed Sep 25, 2018
1 parent 0832698 commit f854f30
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto

@Override
public void setPadding(int left, int top, int right, int bottom) {
// noinspection ConstantConditions
if (mBubbleImpl == null) {
Log.w("BubbleView", "mBubbleImpl == null on old Android platform");
setSuperPadding(left, top, right, bottom);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto

@Override
public void setPadding(int left, int top, int right, int bottom) {
// noinspection ConstantConditions
if (mBubbleImpl == null) {
Log.w("BubbleView", "mBubbleImpl == null on old Android platform");
setSuperPadding(left, top, right, bottom);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto

@Override
public void setPadding(int left, int top, int right, int bottom) {
// noinspection ConstantConditions
if (mBubbleImpl == null) {
Log.w("BubbleView", "mBubbleImpl == null on old Android platform");
setSuperPadding(left, top, right, bottom);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Created by caijw on 2016/6/1.
* https://github.com/cpiz/BubbleView
*/
@SuppressWarnings("unused")
public interface BubbleStyle {
/**
* 箭头朝向定义
Expand Down Expand Up @@ -36,6 +37,7 @@ enum ArrowDirection {
}
}

@SuppressWarnings("UnusedAssignment")
private int mValue = 0;

public int getValue() {
Expand Down Expand Up @@ -102,6 +104,7 @@ enum ArrowPosPolicy {
}
}

@SuppressWarnings("UnusedAssignment")
private int mValue = 0;

public int getValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto

@Override
public void setPadding(int left, int top, int right, int bottom) {
// noinspection ConstantConditions
if (mBubbleImpl == null) {
Log.w("BubbleView", "mBubbleImpl == null on old Android platform");
setSuperPadding(left, top, right, bottom);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

interface Undelegateable {
interface BubbleStyle {
@SuppressWarnings("unused")
void setPadding(int left, int top, int right, int bottom);
}
}

0 comments on commit f854f30

Please sign in to comment.