Skip to content

Commit 4823f95

Browse files
javier-godoypaodb
authored andcommitted
deprecate: deprecate ImageCrop(Image) constructor
Close #24
1 parent 5f50380 commit 4823f95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/flowingcode/vaadin/addons/imagecrop/ImageCrop.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ public ImageCrop(String src) {
6868
* Constructs an ImageCrop component with the given image.
6969
*
7070
* @param image the image to be cropped
71+
* @deprecated This constructor only preserves the image URL and {@linkplain #setImageAlt(String)
72+
* alternate text}. Use {@link #ImageCrop(String)} instead.
7173
*/
74+
@Deprecated(forRemoval = true, since = "1.2.0")
7275
public ImageCrop(Image image) {
7376
this(image.getSrc());
7477
image.getAlt().ifPresent(a -> this.setImageAlt(a));

0 commit comments

Comments
 (0)