aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-01-01 23:19:15 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-01-01 23:19:15 +0100
commit839a82a1dda9de1d3cd126f874645cec4425c04f (patch)
treed29c6610641e9871a50663cf0df7dce4481e809f /main
parent5a9eb4f42b3f22be6fe28da09c8635ac09d814ed (diff)
downloadcgeo-839a82a1dda9de1d3cd126f874645cec4425c04f.zip
cgeo-839a82a1dda9de1d3cd126f874645cec4425c04f.tar.gz
cgeo-839a82a1dda9de1d3cd126f874645cec4425c04f.tar.bz2
refactoring: assert without parenthesis
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/MainActivity.java2
-rw-r--r--main/src/cgeo/geocaching/ui/ImagesList.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/MainActivity.java b/main/src/cgeo/geocaching/MainActivity.java
index 16a469d..55d8a50 100644
--- a/main/src/cgeo/geocaching/MainActivity.java
+++ b/main/src/cgeo/geocaching/MainActivity.java
@@ -237,7 +237,7 @@ public class MainActivity extends AbstractActionBarActivity {
}
private void startBackgroundLogin() {
- assert(app != null);
+ assert app != null;
final boolean mustLogin = app.mustRelog();
diff --git a/main/src/cgeo/geocaching/ui/ImagesList.java b/main/src/cgeo/geocaching/ui/ImagesList.java
index 458f8db..32e29bb 100644
--- a/main/src/cgeo/geocaching/ui/ImagesList.java
+++ b/main/src/cgeo/geocaching/ui/ImagesList.java
@@ -106,7 +106,7 @@ public class ImagesList {
for (final Image img : images) {
final LinearLayout rowView = (LinearLayout) inflater.inflate(R.layout.cache_image_item, imagesView, false);
- assert(rowView != null);
+ assert rowView != null;
if (StringUtils.isNotBlank(img.getTitle())) {
final TextView titleView = ButterKnife.findById(rowView, R.id.title);
@@ -121,7 +121,7 @@ public class ImagesList {
}
final ImageView imageView = (ImageView) inflater.inflate(R.layout.image_item, rowView, false);
- assert(imageView != null);
+ assert imageView != null;
subscriptions.add(AndroidObservable.bindActivity(activity, imgGetter.fetchDrawable(img.getUrl())).subscribe(new Action1<BitmapDrawable>() {
@Override
public void call(final BitmapDrawable image) {