mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-04-21 15:57:32 -04:00
Make spotBugs happy
This commit is contained in:
@@ -53,7 +53,7 @@ public class ImportURIHelper {
|
||||
if (store == null || note == null || cardId == null || barcodeType == null) throw new InvalidObjectException("Not a valid import URI");
|
||||
|
||||
String unparsedExpiry = uri.getQueryParameter(EXPIRY);
|
||||
if(unparsedExpiry != null && unparsedExpiry != "")
|
||||
if(unparsedExpiry != null && !unparsedExpiry.equals(""))
|
||||
{
|
||||
expiry = new Date(Long.parseLong(unparsedExpiry));
|
||||
}
|
||||
|
||||
@@ -229,6 +229,7 @@ public class LoyaltyCardEditActivity extends AppCompatActivity
|
||||
|
||||
tabs.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
|
||||
@Override
|
||||
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE")
|
||||
public void onTabSelected(TabLayout.Tab tab) {
|
||||
showPart(tab.getText().toString());
|
||||
}
|
||||
@@ -239,6 +240,7 @@ public class LoyaltyCardEditActivity extends AppCompatActivity
|
||||
}
|
||||
|
||||
@Override
|
||||
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE")
|
||||
public void onTabReselected(TabLayout.Tab tab) {
|
||||
showPart(tab.getText().toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user