spelling: cannot

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2024-10-22 08:08:58 -04:00
committed by Jindra Petřík
parent eacadf7cea
commit 34ae22d837
5 changed files with 14 additions and 14 deletions

View File

@@ -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</li> <li>As a double number</li> <li>As an integer/integer
* rational number</li>
*
* @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('/');

View File

@@ -101,7 +101,7 @@ public class BreadcrumbTreeAdapterSelector extends JBreadcrumbBar<Object> {
protected TreeModel treeModel;
/**
* The corresponding tree adapter. Can not be <code>null</code>.
* The corresponding tree adapter. Cannot be <code>null</code>.
*/
protected TreeAdapter treeAdapter;
@@ -118,7 +118,7 @@ public class BreadcrumbTreeAdapterSelector extends JBreadcrumbBar<Object> {
* @param treeModel
* The corresponding tree model.
* @param treeAdapter
* The corresponding tree adapter. Can not be
* The corresponding tree adapter. Cannot be
* <code>null</code>.
* @param isRootVisible
* If <code>true</code>, the first selector shows the tree
@@ -225,7 +225,7 @@ public class BreadcrumbTreeAdapterSelector extends JBreadcrumbBar<Object> {
* @param treeModel
* Tree model.
* @param treeAdapter
* Tree adapter. Can not be <code>null</code>.
* Tree adapter. Cannot be <code>null</code>.
* @param isRootVisible
* If <code>true</code>, the first selector shows the tree root
* node. If <code>false</code>, the first selector shows the tree
@@ -259,7 +259,7 @@ public class BreadcrumbTreeAdapterSelector extends JBreadcrumbBar<Object> {
* @param tree
* Tree.
* @param treeAdapter
* Tree adapter. Can not be <code>null</code>.
* Tree adapter. Cannot be <code>null</code>.
*/
public BreadcrumbTreeAdapterSelector(JTree tree, TreeAdapter treeAdapter) {
this(tree.getModel(), treeAdapter, tree.isRootVisible());

View File

@@ -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);

View File

@@ -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 <code>null</code>.
* Wrapped component. Cannot be <code>null</code>.
* @throws IllegalArgumentException
* if <code>mainComponent</code> is <code>null</code>.
*/
@@ -131,9 +131,9 @@ public class JRibbonComponent extends RichToolTipManager.JTrackableComponent {
* @param icon
* Wrapper icon. Can be <code>null</code>.
* @param caption
* Wrapper caption. Can not be <code>null</code>.
* Wrapper caption. Cannot be <code>null</code>.
* @param mainComponent
* Wrapped component. Can not be <code>null</code>.
* Wrapped component. Cannot be <code>null</code>.
* @throws IllegalArgumentException
* if <code>caption</code> or <code>mainComponent</code> is
* <code>null</code>.

View File

@@ -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;