Annotation Type ThreadConfined


  • @Target({TYPE,FIELD,METHOD})
    @Retention(CLASS)
    public @interface ThreadConfined
    This annotation tells the thread-safety analysis to assume that mutations in the annotated class/field/method are confined to the given thread name. For the thread name, you can either use the default constants UI/ANY or add your own.
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static String ANY
      confined to the UI thread
      static String UI
      the thread that the mutations should be confined to
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value  
    • Field Detail

      • UI

        static final String UI
        the thread that the mutations should be confined to
      • ANY

        static final String ANY
        confined to the UI thread