@@ -162,7 +162,7 @@ public enum Orientation {
162162 private boolean isFromClient = false ;
163163
164164 private String layoutId ;
165-
165+
166166 private static <T > ListDataProvider <T > emptyDataProvider () {
167167 return DataProvider .ofCollection (new LinkedHashSet <>());
168168 }
@@ -308,7 +308,7 @@ public TwinColGrid(@NonNull Grid<T> availableGrid, @NonNull Grid<T> selectionGri
308308 /**
309309 * Sets the component caption.
310310 *
311- * @param captinText the component caption.
311+ * @param captionText the component caption.
312312 */
313313 public void setCaption (String captionText ) {
314314 if (captionText != null ) {
@@ -339,7 +339,7 @@ public String getCaption() {
339339 * Sets orientation for TwinColGridComponent
340340 *
341341 * @param orientation
342- * @return
342+ * @return this instance for method chaining.
343343 */
344344 public TwinColGrid <T > withOrientation (Orientation orientation ) {
345345 if (this .orientation != orientation ) {
@@ -393,10 +393,10 @@ private Component createContainerLayout() {
393393
394394 private String getLayoutId () {
395395 return Optional .ofNullable (layoutId ).orElseGet (()->{
396- return this . layoutId = "twincol-" + UUID .randomUUID ();
396+ return layoutId = "twincol-" + UUID .randomUUID ();
397397 });
398398 }
399-
399+
400400 private HorizontalLayout createHorizontalContainer (boolean reverse ) {
401401 buttonContainer = getVerticalButtonContainer ();
402402 HorizontalLayout hl ;
@@ -676,7 +676,7 @@ public TwinColGrid<T> addSortableColumn(
676676 * @param itemLabelGenerator the value provider
677677 * @param comparator the in-memory comparator
678678 * @param header the column header
679- * @param header the column key
679+ * @param key the column key
680680 * @return this instance
681681 */
682682 public TwinColGrid <T > addSortableColumn (
0 commit comments