Merge branch 'GP-0_ryanmkurtz_PR-6916_Ailuridae_fix-spelling-mistakes'

This commit is contained in:
Ryan Kurtz 2024-09-16 15:00:50 -04:00
commit 2ee193293f
2 changed files with 10 additions and 10 deletions

View File

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -137,7 +137,7 @@ public class FontModifierTest {
public void testInvalidModifierString() { public void testInvalidModifierString() {
try { try {
FontModifier.parse("asdfasf"); FontModifier.parse("asdfasf");
fail("Expected IllegalArgumentExcption"); fail("Expected IllegalArgumentException");
} }
catch (ParseException e) { catch (ParseException e) {
// expected // expected
@ -148,7 +148,7 @@ public class FontModifierTest {
public void testInvalidModifierString2() { public void testInvalidModifierString2() {
try { try {
FontModifier.parse("[12]aa[13]"); FontModifier.parse("[12]aa[13]");
fail("Expected IllegalArgumentExcption"); fail("Expected IllegalArgumentException");
} }
catch (ParseException e) { catch (ParseException e) {
// expected // expected
@ -159,7 +159,7 @@ public class FontModifierTest {
public void testInvalidModifierString3() { public void testInvalidModifierString3() {
try { try {
FontModifier.parse("[12]aa13]"); FontModifier.parse("[12]aa13]");
fail("Expected IllegalArgumentExcption"); fail("Expected IllegalArgumentException");
} }
catch (ParseException e) { catch (ParseException e) {
// expected // expected
@ -170,7 +170,7 @@ public class FontModifierTest {
public void testInvalidModifierString4() { public void testInvalidModifierString4() {
try { try {
FontModifier.parse("[12][plain]sz"); FontModifier.parse("[12][plain]sz");
fail("Expected IllegalArgumentExcption"); fail("Expected IllegalArgumentException");
} }
catch (ParseException e) { catch (ParseException e) {
// expected // expected

View File

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -184,7 +184,7 @@ public class LinkedByteBuffer {
} }
for (;;) { for (;;) {
if (byteCount > maxCount) { if (byteCount > maxCount) {
throw new IOException("Response buffer size exceded for: " + description); throw new IOException("Response buffer size exceeded for: " + description);
} }
do { do {
if (currentPos == BUFFER_SIZE) { if (currentPos == BUFFER_SIZE) {
@ -277,7 +277,7 @@ public class LinkedByteBuffer {
currentBuffer.array[currentPos++] = tok; currentBuffer.array[currentPos++] = tok;
byteCount += 1; byteCount += 1;
if (byteCount > maxCount) { if (byteCount > maxCount) {
throw new IOException("Response buffer size exceded for: " + description); throw new IOException("Response buffer size exceeded for: " + description);
} }
} }
} }