فهرست منبع

ui:activity: Removed @NonNull annotation for method where null can be returned.

The return value is marked @NonNull and is therefore assumed to only return non-null values. Therefore setting one of these values to null, or failing to set such a class field in a constructor, could cause NullPointerExceptions at runtime. In this case, view might be null.
eho 7 سال پیش
والد
کامیت
324382dcc0
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      src/main/java/com/owncloud/android/ui/activity/ErrorsWhileCopyingHandlerActivity.java

+ 0 - 1
src/main/java/com/owncloud/android/ui/activity/ErrorsWhileCopyingHandlerActivity.java

@@ -153,7 +153,6 @@ public class ErrorsWhileCopyingHandlerActivity  extends AppCompatActivity implem
         /**
          * {@inheritDoc}
          */
-        @NonNull
         @Override
         public View getView (int position, View convertView, @NonNull ViewGroup parent) {
             View view = convertView;