commit | 9d455fa17316c762051c7b1afc27f12adae6c738 | [log] [tgz] |
---|---|---|
author | Éamonn McManus <emcmanus@google.com> | Mon Apr 17 07:43:39 2023 -0700 |
committer | Google Java Core Libraries <java-libraries-firehose+copybara@google.com> | Mon Apr 17 07:44:25 2023 -0700 |
tree | 4218f9630b912f6610de72a6eff962fe25178e72 | |
parent | 6015fc3bded54db8d5f9fb6334e44a0f7f4e48ba [diff] |
Handle parameter annotations that are both `PARAMETER` and `TYPE_USE`. For example, `org.jetbrains.annotations.NotNull`. Previously, we would end up putting `@NotNull` in the source code twice, once on the parameter and once on the type. Of course this just ends up looking like `@NotNull @NotNull String` and the compiler rejects it. RELNOTES=AutoFactory now correctly handles the case where a parameter annotation has `@Target` with both `PARAMETER` and `TYPE_USE`. PiperOrigin-RevId: 524844110
A collection of source code generators for Java.
Java is full of code that is mechanical, repetitive, typically untested and sometimes the source of subtle bugs. Sounds like a job for robots!
The Auto subprojects are a collection of code generators that automate those types of tasks. They create the code you would have written, but without the bugs.
Save time. Save code. Save sanity.
AutoFactory - JSR-330-compatible factories
AutoService - Provider-configuration files for ServiceLoader
AutoValue - Immutable value-type code generation for Java 7+.
Common - Helper utilities for writing annotation processors.
Copyright 2013 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.