Skip to content

GWT compiler shows warning for class Platform.getDeclaringClassOrNullForJ2cl(Enum) #6602

@lgemeinhardt

Description

@lgemeinhardt

The GWT compiler (latest version - 2.10.0) shows this warnings (using the latest version of guava)

Warnings in com/google/common/collect/super/com/google/common/collect/Platform.java
   [WARN] Line 107: [unusable-by-js] Return type of 'Class Platform.getDeclaringClassOrNullForJ2cl(Enum)' is not usable by but exposed to JavaScript.
[WARN] Suppress "[unusable-by-js]" warnings by adding a `@SuppressWarnings("unusable-by-js")` annotation to the corresponding member.

Is it possible to add the suggested @SuppressWarnings("unusable-by-js") to suppress it and avoid such warnings?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions