google / google/error-prone

Allow DoNotCall annotation on constructors

Open
#4,151 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

The `@DoNotCall` annotation has the following target declaration:

```java
@Target(METHOD)
```

But it makes sense to also put it on constructors, which are in many aspects like methods.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.