what is the use of @SuppressLint(“InlinedApi”)

后端 未结 3 1456
长发绾君心
长发绾君心 2021-02-05 11:14

I encountered @SuppressLint(\"InlinedApi\") in some code i was going through and could not find out any description of it online. I understand @SuppressLint(\

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-05 11:43

    I found this.. @SuppressLint("InlinedApi") Indicates that Lint should ignore the specified warnings for the annotated element.

      Exp:
      SuppressLint
      implements from Annotation Class.
      android.annotation.SuppressLint like this..
    
      Built-In Annotations
    

    Java defines a set of annotations that are built into the language Annotations applied to java code: @Override - Checks that the method is an override. Causes a compile error if the method is not found in one of the parent classes or implemented interfaces. @Deprecated - Marks the method as obsolete. Causes a compile warning if the method is used. @SuppressWarnings - Instructs the compiler to suppress the compile time warnings specified in the annotation parameters

    http://developer.android.com/reference/java/lang/annotation/Annotation.html
    http://developer.android.com/reference/android/annotation/SuppressLint.html
    

提交回复
热议问题