An alternative that javax.annotation.Nullable can't find in Android engineering

Source: Internet
Author: User

Http://androidren.com/index.php?qa=315&qa_1=android%E5%B7%A5%E7%A8%8B%E4%B8%ADjavax-annotation-nullable%E6 %89%be%e4%b8%8d%e5%88%b0%e7%9a%84%e6%9b%bf%e4%bb%a3%e6%96%b9%e6%a1%88

We may encounter the following references in some Android open source libraries: import Javax.annotation.nonnull;import javax.annotation.Nullable; In fact, the Android implementation of javax similar annotations, you can use the following reference to replace: import Android.support.annotation.nonnull;import android.support.annotation.Nullable; Of course, the latter need to be cited in the declaration of the Library: dependencies {compile ' com.android.support:support-annotations:21.0.2 '}


An alternative that javax.annotation.Nullable can't find in Android engineering

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.