Commits

Samir Hadzic committed 8aff525

Typo fixed in GridViewSkin. Equals with null removed because that method already exist.

Comments (0)

Files changed (3)

controlsfx/src/main/java/impl/org/controlsfx/spreadsheet/GridViewSkin.java

         rowHeightMap.clear();
         
         /**
-         * Wen resizing to default, we need to go through the visible rows in
+         * When resizing to default, we need to go through the visible rows in
          * order to update them directly. Because if the rowHeightMap is empty,
          * the rows will not detect that maybe the height has changed.
          */

controlsfx/src/main/java/org/controlsfx/control/spreadsheet/GridBase.java

 import org.controlsfx.control.spreadsheet.SpreadsheetView.SpanType;
 
 import com.sun.javafx.event.EventHandlerManager;
-import org.controlsfx.tools.Utils;
 
 /**
  * A base implementation of the {@link Grid} interface.
             Object previousItem = cell.getItem();
             Object convertedValue = cell.getCellType().convertValue(value);
             cell.setItem(convertedValue);
-            if (!Utils.equalsWithNull(previousItem, cell.getItem())) {
+            if (!java.util.Objects.equals(previousItem, cell.getItem())) {
                 GridChange cellChange = new GridChange(row, column, previousItem, convertedValue);
                 Event.fireEvent(this, cellChange);
             }

controlsfx/src/main/java/org/controlsfx/tools/Utils.java

 
         return letter;
     }
-    
-    /**
-     * The equals method which integrate the null value.
-     *
-     * @param a
-     * @param b
-     * @return
-     */
-    public static boolean equalsWithNull(Object a, Object b) {
-        if (a == b) {
-            return true;
-        }
-        if ((a == null) || (b == null)) {
-            return false;
-        }
-        return a.equals(b);
-    }
 }