Skip to content

Commit

Permalink
8229472: Deprecate for removal JavaBeanXxxPropertyBuilders constructors
Browse files Browse the repository at this point in the history
Reviewed-by: kcr, arapte
  • Loading branch information
nlisker committed Nov 20, 2019
1 parent aad1720 commit 8bea7b7
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public final class JavaBeanBooleanPropertyBuilder {
private final JavaBeanPropertyBuilderHelper helper = new JavaBeanPropertyBuilderHelper();

/**
* <b>Do not use this constructor.</b> It will be deprecated in the next version. Use {@link #create()} instead.
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public JavaBeanBooleanPropertyBuilder() {}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public final class JavaBeanDoublePropertyBuilder {
private final JavaBeanPropertyBuilderHelper helper = new JavaBeanPropertyBuilderHelper();

/**
* <b>Do not use this constructor.</b> It will be deprecated in the next version. Use {@link #create()} instead.
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public JavaBeanDoublePropertyBuilder() {}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public final class JavaBeanFloatPropertyBuilder {
private JavaBeanPropertyBuilderHelper helper = new JavaBeanPropertyBuilderHelper();

/**
* <b>Do not use this constructor.</b> It will be deprecated in the next version. Use {@link #create()} instead.
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public JavaBeanFloatPropertyBuilder() {}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public final class JavaBeanIntegerPropertyBuilder {
private JavaBeanPropertyBuilderHelper helper = new JavaBeanPropertyBuilderHelper();

/**
* <b>Do not use this constructor.</b> It will be deprecated in the next version. Use {@link #create()} instead.
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public JavaBeanIntegerPropertyBuilder() {}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public final class JavaBeanLongPropertyBuilder {
private JavaBeanPropertyBuilderHelper helper = new JavaBeanPropertyBuilderHelper();

/**
* <b>Do not use this constructor.</b> It will be deprecated in the next version. Use {@link #create()} instead.
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public JavaBeanLongPropertyBuilder() {}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public final class JavaBeanObjectPropertyBuilder<T> {
private JavaBeanPropertyBuilderHelper helper = new JavaBeanPropertyBuilderHelper();

/**
* <b>Do not use this constructor.</b> It will be deprecated in the next version. Use {@link #create()} instead.
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public JavaBeanObjectPropertyBuilder() {}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public final class JavaBeanStringPropertyBuilder {
private JavaBeanPropertyBuilderHelper helper = new JavaBeanPropertyBuilderHelper();

/**
* <b>Do not use this constructor.</b> It will be deprecated in the next version. Use {@link #create()} instead.
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public JavaBeanStringPropertyBuilder() {}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -60,6 +60,12 @@ public final class ReadOnlyJavaBeanBooleanPropertyBuilder {

private final ReadOnlyJavaBeanPropertyBuilderHelper helper = new ReadOnlyJavaBeanPropertyBuilderHelper();

/**
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public ReadOnlyJavaBeanBooleanPropertyBuilder() {}

/**
* Create a new instance of {@code ReadOnlyJavaBeanBooleanPropertyBuilder}
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -60,6 +60,12 @@ public final class ReadOnlyJavaBeanDoublePropertyBuilder {

private final ReadOnlyJavaBeanPropertyBuilderHelper helper = new ReadOnlyJavaBeanPropertyBuilderHelper();

/**
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public ReadOnlyJavaBeanDoublePropertyBuilder() {}

/**
* Create a new instance of {@code ReadOnlyJavaBeanDoublePropertyBuilder}
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -60,6 +60,12 @@ public final class ReadOnlyJavaBeanFloatPropertyBuilder {

private final ReadOnlyJavaBeanPropertyBuilderHelper helper = new ReadOnlyJavaBeanPropertyBuilderHelper();

/**
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public ReadOnlyJavaBeanFloatPropertyBuilder() {}

/**
* Create a new instance of {@code ReadOnlyJavaBeanFloatPropertyBuilder}
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -60,6 +60,12 @@ public final class ReadOnlyJavaBeanIntegerPropertyBuilder {

private final ReadOnlyJavaBeanPropertyBuilderHelper helper = new ReadOnlyJavaBeanPropertyBuilderHelper();

/**
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public ReadOnlyJavaBeanIntegerPropertyBuilder() {}

/**
* Create a new instance of {@code ReadOnlyJavaBeanIntegerPropertyBuilder}
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -60,6 +60,12 @@ public final class ReadOnlyJavaBeanLongPropertyBuilder {

private final ReadOnlyJavaBeanPropertyBuilderHelper helper = new ReadOnlyJavaBeanPropertyBuilderHelper();

/**
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public ReadOnlyJavaBeanLongPropertyBuilder() {}

/**
* Create a new instance of {@code ReadOnlyJavaBeanLongPropertyBuilder}
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -62,6 +62,12 @@ public final class ReadOnlyJavaBeanObjectPropertyBuilder<T> {

private final ReadOnlyJavaBeanPropertyBuilderHelper helper = new ReadOnlyJavaBeanPropertyBuilderHelper();

/**
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public ReadOnlyJavaBeanObjectPropertyBuilder() {}

/**
* Create a new instance of {@code ReadOnlyJavaBeanObjectPropertyBuilder}
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -60,6 +60,12 @@ public final class ReadOnlyJavaBeanStringPropertyBuilder {

private final ReadOnlyJavaBeanPropertyBuilderHelper helper = new ReadOnlyJavaBeanPropertyBuilderHelper();

/**
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #create()} instead.
*/
@Deprecated(since="14", forRemoval=true)
public ReadOnlyJavaBeanStringPropertyBuilder() {}

/**
* Create a new instance of {@code ReadOnlyJavaBeanStringPropertyBuilder}
*
Expand Down

0 comments on commit 8bea7b7

Please sign in to comment.