aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format/dac/deprecation/DeprecatedFoo.java
blob: 3c9c360eea549ae6227cf432067d65c15db11d9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public class Foo {
    public Foo() { }

    public static Foo replacementFooMethod() { return Foo() }

    public static DeprecatedFoo badFooMethod() { return new DeprecatedFoo() }

    /**
     * @deprecated Use {@link #replacementFooMethod()} instead.
     */
    @Deprecated
    public static DeprecatedFoo goodFooMethod() { return new DeprecatedFoo() }
}

/**
 * @deprecated Use {@link #Foo} instead.
 */
@Deprecated
public class DeprecatedFoo {
    public DeprecatedFoo() { }
}