Skip to content

Commit

Permalink
fix javadoc for get/set
Browse files Browse the repository at this point in the history
  • Loading branch information
knoobie committed Feb 17, 2021
1 parent 349bbb0 commit 00d1693
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions flow-server/src/main/java/com/vaadin/flow/component/HasSize.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,10 @@ default String getMaxWidth() {
}

/**
* Gets the width unit defined for the component.
* Gets the width unit of the component, if defined.
*
* @return the width unit which has been set for the component
* @return an optional width unit for the component, or an empty
* optional if no width unit has been set
*/
default Optional<Unit> getWidthUnit() {
return Unit.getUnit(getWidth());
Expand Down Expand Up @@ -308,9 +309,10 @@ default String getMaxHeight() {
}

/**
* Gets the height unit defined for the component.
* Gets the height unit of the component, if defined.
*
* @return the height unit which has been set for the component
* @return an optional height unit for the component, or an empty
* optional if no height unit has been set
*/
default Optional<Unit> getHeightUnit() {
return Unit.getUnit(getHeight());
Expand Down

0 comments on commit 00d1693

Please sign in to comment.