/*
 * Copyright 2014 Google Inc. All rights reserved.
 *
 * 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.
 */
package org.inferred.freebuilder;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
 * Annotates a type that has an auto-generated builder.
 *
 * <h3>Quick start</h3>
 *
 * <p>Create your value type (e.g. {@code Person}) as an interface or abstract class, containing
 * an abstract accessor method for each desired field. This accessor must be non-void,
 * parameterless, and start with 'get' or 'is'. Add the {@code @FreeBuilder} annotation to your
 * class, and it will automatically generate an implementing class and a package-visible builder API
 * ({@code Person_Builder}), which you must subclass. For instance:
 *
 * <p><blockquote><pre> {@literal @}FreeBuilder
 * public interface Person {
 *   /** Returns the person's full (English) name. *{@literal /}
 *   String getName();
 *   /** Returns the person's age in years, rounded down. *{@literal /}
 *   int getAge();
 *   /** Builder of {{@literal @}link Person} instances. *{@literal /}
 *   class Builder extends Person_Builder { }
 * }</pre></blockquote>
 *
 * <p>You can now use the {@code Builder} class:
 *
 * <p><blockquote><pre> Person person = new Person.Builder()
 *     .setName("Phil")
 *     .setAge(31)
 *     .build();
 * System.out.println(person);  // Person{name=Phil, age=31}</pre></blockquote></p>
 *
 * @see
 * <a href="http://freebuilder.inferred.org/">Full documentation at freebuilder.inferred.org</a>
 */
@Target(ElementType.TYPE)
public @interface FreeBuilder {}


@@ -681,16 +681,100 @@
 ntType;%0A
+import java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0A
 import j
@@ -2139,16 +2139,51 @@
 e.TYPE)%0A
+@Retention(RetentionPolicy.SOURCE)%0A
 public @

Revert "Change RetentionLevel.SOURCE to RetentionLevel.CLASS to work around a bu..."