Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Simple @SharedPref with APPLICATION_DEFAULT scope creates unused field #1030

@nomis

Description

@nomis

With the following simple preferences interface, there is an unused "private Context context_" in the generated class that the compiler generates a warning for:

@SharedPref(value = Scope.APPLICATION_DEFAULT)
public interface Prefs {
String a();

String b();

}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions