From d45820a85021dcc45be00f672920dc447422962f Mon Sep 17 00:00:00 2001 From: Maurice Sotzny Date: Sat, 14 Sep 2024 10:58:17 +0200 Subject: [PATCH 1/2] Fix spelling mistakes --- .../Gui/src/test/java/generic/theme/FontModifierTest.java | 8 ++++---- .../java/ghidra/program/model/pcode/LinkedByteBuffer.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Ghidra/Framework/Gui/src/test/java/generic/theme/FontModifierTest.java b/Ghidra/Framework/Gui/src/test/java/generic/theme/FontModifierTest.java index 8a498c2edf..7061204185 100644 --- a/Ghidra/Framework/Gui/src/test/java/generic/theme/FontModifierTest.java +++ b/Ghidra/Framework/Gui/src/test/java/generic/theme/FontModifierTest.java @@ -137,7 +137,7 @@ public class FontModifierTest { public void testInvalidModifierString() { try { FontModifier.parse("asdfasf"); - fail("Expected IllegalArgumentExcption"); + fail("Expected IllegalArgumentException"); } catch (ParseException e) { // expected @@ -148,7 +148,7 @@ public class FontModifierTest { public void testInvalidModifierString2() { try { FontModifier.parse("[12]aa[13]"); - fail("Expected IllegalArgumentExcption"); + fail("Expected IllegalArgumentException"); } catch (ParseException e) { // expected @@ -159,7 +159,7 @@ public class FontModifierTest { public void testInvalidModifierString3() { try { FontModifier.parse("[12]aa13]"); - fail("Expected IllegalArgumentExcption"); + fail("Expected IllegalArgumentException"); } catch (ParseException e) { // expected @@ -170,7 +170,7 @@ public class FontModifierTest { public void testInvalidModifierString4() { try { FontModifier.parse("[12][plain]sz"); - fail("Expected IllegalArgumentExcption"); + fail("Expected IllegalArgumentException"); } catch (ParseException e) { // expected diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java index 3180fff1ab..bcd7846461 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java @@ -184,7 +184,7 @@ public class LinkedByteBuffer { } for (;;) { if (byteCount > maxCount) { - throw new IOException("Response buffer size exceded for: " + description); + throw new IOException("Response buffer size exceeded for: " + description); } do { if (currentPos == BUFFER_SIZE) { @@ -277,7 +277,7 @@ public class LinkedByteBuffer { currentBuffer.array[currentPos++] = tok; byteCount += 1; if (byteCount > maxCount) { - throw new IOException("Response buffer size exceded for: " + description); + throw new IOException("Response buffer size exceeded for: " + description); } } } From 15b87a5e77cc4bab3e7091508163de8ad3ad60ce Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Mon, 16 Sep 2024 14:59:51 -0400 Subject: [PATCH 2/2] GP-0: Certify --- .../Gui/src/test/java/generic/theme/FontModifierTest.java | 4 ++-- .../java/ghidra/program/model/pcode/LinkedByteBuffer.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Ghidra/Framework/Gui/src/test/java/generic/theme/FontModifierTest.java b/Ghidra/Framework/Gui/src/test/java/generic/theme/FontModifierTest.java index 7061204185..f0100c7b8a 100644 --- a/Ghidra/Framework/Gui/src/test/java/generic/theme/FontModifierTest.java +++ b/Ghidra/Framework/Gui/src/test/java/generic/theme/FontModifierTest.java @@ -4,9 +4,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java index bcd7846461..edaee61836 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java @@ -4,9 +4,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.