From 34ae22d83762b775e5c5f22598e3367caa283f3d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 22 Oct 2024 08:08:58 -0400 Subject: [PATCH] spelling: cannot Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- libsrc/avi/src/org/monte/media/math/Rational.java | 4 ++-- .../api/bcb/core/BreadcrumbTreeAdapterSelector.java | 8 ++++---- .../org/pushingpixels/flamingo/api/ribbon/JRibbon.java | 2 +- .../flamingo/api/ribbon/JRibbonComponent.java | 6 +++--- src/com/sun/jna/platform/win32/WinError.java | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/libsrc/avi/src/org/monte/media/math/Rational.java b/libsrc/avi/src/org/monte/media/math/Rational.java index 30339aef2..054b4b6b8 100644 --- a/libsrc/avi/src/org/monte/media/math/Rational.java +++ b/libsrc/avi/src/org/monte/media/math/Rational.java @@ -328,7 +328,7 @@ public class Rational extends Number { } } - // Work with longs if overflow can not occur + // Work with longs if overflow cannot occur if (abs(this.num) < Integer.MAX_VALUE && abs(this.den) < Integer.MAX_VALUE && abs(that.num) < Integer.MAX_VALUE @@ -476,7 +476,7 @@ public class Rational extends Number { * number
  • As a double number
  • As an integer/integer * rational number
  • * - * @throws NumberFormatException if str can not be parsed. + * @throws NumberFormatException if str cannot be parsed. */ public static Rational valueOf(String str) { int p = str.indexOf('/'); diff --git a/libsrc/flamingo/src/org/pushingpixels/flamingo/api/bcb/core/BreadcrumbTreeAdapterSelector.java b/libsrc/flamingo/src/org/pushingpixels/flamingo/api/bcb/core/BreadcrumbTreeAdapterSelector.java index 5449afadc..682d20811 100644 --- a/libsrc/flamingo/src/org/pushingpixels/flamingo/api/bcb/core/BreadcrumbTreeAdapterSelector.java +++ b/libsrc/flamingo/src/org/pushingpixels/flamingo/api/bcb/core/BreadcrumbTreeAdapterSelector.java @@ -101,7 +101,7 @@ public class BreadcrumbTreeAdapterSelector extends JBreadcrumbBar { protected TreeModel treeModel; /** - * The corresponding tree adapter. Can not be null. + * The corresponding tree adapter. Cannot be null. */ protected TreeAdapter treeAdapter; @@ -118,7 +118,7 @@ public class BreadcrumbTreeAdapterSelector extends JBreadcrumbBar { * @param treeModel * The corresponding tree model. * @param treeAdapter - * The corresponding tree adapter. Can not be + * The corresponding tree adapter. Cannot be * null. * @param isRootVisible * If true, the first selector shows the tree @@ -225,7 +225,7 @@ public class BreadcrumbTreeAdapterSelector extends JBreadcrumbBar { * @param treeModel * Tree model. * @param treeAdapter - * Tree adapter. Can not be null. + * Tree adapter. Cannot be null. * @param isRootVisible * If true, the first selector shows the tree root * node. If false, the first selector shows the tree @@ -259,7 +259,7 @@ public class BreadcrumbTreeAdapterSelector extends JBreadcrumbBar { * @param tree * Tree. * @param treeAdapter - * Tree adapter. Can not be null. + * Tree adapter. Cannot be null. */ public BreadcrumbTreeAdapterSelector(JTree tree, TreeAdapter treeAdapter) { this(tree.getModel(), treeAdapter, tree.isRootVisible()); diff --git a/libsrc/flamingo/src/org/pushingpixels/flamingo/api/ribbon/JRibbon.java b/libsrc/flamingo/src/org/pushingpixels/flamingo/api/ribbon/JRibbon.java index 4c8263fb2..f37f05d86 100644 --- a/libsrc/flamingo/src/org/pushingpixels/flamingo/api/ribbon/JRibbon.java +++ b/libsrc/flamingo/src/org/pushingpixels/flamingo/api/ribbon/JRibbon.java @@ -340,7 +340,7 @@ public class JRibbon extends JComponent { */ public void removeTask(RibbonTask task) { if (task == null) { - throw new IllegalArgumentException("RibbonTask can not be null"); + throw new IllegalArgumentException("RibbonTask cannot be null"); } int posOfTask = this.tasks.indexOf(task); diff --git a/libsrc/flamingo/src/org/pushingpixels/flamingo/api/ribbon/JRibbonComponent.java b/libsrc/flamingo/src/org/pushingpixels/flamingo/api/ribbon/JRibbonComponent.java index 0575f328b..1b56ae164 100644 --- a/libsrc/flamingo/src/org/pushingpixels/flamingo/api/ribbon/JRibbonComponent.java +++ b/libsrc/flamingo/src/org/pushingpixels/flamingo/api/ribbon/JRibbonComponent.java @@ -108,7 +108,7 @@ public class JRibbonComponent extends RichToolTipManager.JTrackableComponent { * Creates a simple wrapper with no icon and no caption. * * @param mainComponent - * Wrapped component. Can not be null. + * Wrapped component. Cannot be null. * @throws IllegalArgumentException * if mainComponent is null. */ @@ -131,9 +131,9 @@ public class JRibbonComponent extends RichToolTipManager.JTrackableComponent { * @param icon * Wrapper icon. Can be null. * @param caption - * Wrapper caption. Can not be null. + * Wrapper caption. Cannot be null. * @param mainComponent - * Wrapped component. Can not be null. + * Wrapped component. Cannot be null. * @throws IllegalArgumentException * if caption or mainComponent is * null. diff --git a/src/com/sun/jna/platform/win32/WinError.java b/src/com/sun/jna/platform/win32/WinError.java index b50362687..4e7175526 100644 --- a/src/com/sun/jna/platform/win32/WinError.java +++ b/src/com/sun/jna/platform/win32/WinError.java @@ -23407,7 +23407,7 @@ public interface WinError { // // MessageText: // - // The log of the subscription is in disabled state, and can not be used to + // The log of the subscription is in disabled state, and cannot be used to // forward events to. The log must first be enabled before the subscription // can be activated. // @@ -40475,7 +40475,7 @@ public interface WinError { // // MessageText: // - // Network interface can not process the request because it is being reset. + // Network interface cannot process the request because it is being reset. // int ERROR_NDIS_RESET_IN_PROGRESS = 0x8034000D; @@ -40575,7 +40575,7 @@ public interface WinError { // // MessageText: // - // An attempt was made to map a file that can not be found. + // An attempt was made to map a file that cannot be found. // int ERROR_NDIS_FILE_NOT_FOUND = 0x8034001B; @@ -40708,7 +40708,7 @@ public interface WinError { // // MessageText: // - // The wireless local area network interface is busy and can not perform the + // The wireless local area network interface is busy and cannot perform the // requested operation. // int ERROR_NDIS_DOT11_MEDIA_IN_USE = 0x80342001;