| commit | 6730615c9a319f9ae0e108144e79a1d26bb473d2 | [log] [tgz] |
|---|---|---|
| author | Éamonn McManus <emcmanus@google.com> | Mon Oct 02 11:31:23 2023 -0700 |
| committer | Google Java Core Libraries <java-libraries-firehose+copybara@google.com> | Mon Oct 02 11:33:38 2023 -0700 |
| tree | af42a458b11fb64bd1c612b9899ce6ba8c40e2c5 | |
| parent | 0194ed73fd6194e68bb14c25a97ed8f06d3298e4 [diff] |
The "copy constructor" in a generated `Builder` is no longer private. This is the constructor that is generated when the containing `@AutoValue` class has an abstract `toBuilder()` method. The implementation of that method calls the copy constructor. By making the constructor visible, we allow extensions to subclass `Builder` and call its copy constructor. RELNOTES=The "copy constructor" in a generated `Builder` is no longer private. PiperOrigin-RevId: 570125710
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.