2

I was studying Android's FileProvider API and noticed that while method getUriForFile is static, it is not declared as static in the documentation:

Uri getUriForFile (Context context, 
            String authority, 
            File file)

What am I missing? Why isn't it declared as:

public static Uri getUriForFile (Context context, 
                          String authority, 
                          File file)

Note: It is declared as static in methods summary, but not in the full description section.

SoSa
  • 105
  • 1
  • 8

1 Answers1

1

It would appear to be a bug in the JavaDocs generation for the Support Library. Framework classes show the static keyword where you are expecting it, as do AndroidX classes.

I filed an issue to try to get this repaired.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491