• 8
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

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.

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.

  • 1
Reply Report