Skip to content

Commit b517871

Browse files
committed
No need to end exception messages with an exclamation!
1 parent 3dee7ea commit b517871

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SofnSegment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public SofnSegment(final int marker, final int markerLength, final InputStream i
119119
width = read2Bytes("width", is, "Not a Valid JPEG File", getByteOrder());
120120
numberOfComponents = readByte("numberOfComponents", is, "Not a Valid JPEG File");
121121
if (numberOfComponents < 0) {
122-
throw new ImagingException("The number of components in a SOF0Segment cannot be less than 0!");
122+
throw new ImagingException("The number of components in a SOF0Segment cannot be less than 0.");
123123
}
124124
components = Allocator.array(numberOfComponents, Component[]::new, Component.SHALLOW_SIZE);
125125
for (int i = 0; i < numberOfComponents; i++) {

src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ private int parseColor(String color) throws ImagingException {
289289
return 0x00000000;
290290
}
291291
if (color.charAt(0) == '%') {
292-
throw new ImagingException("HSV colors are not implemented even in the XPM specification!");
292+
throw new ImagingException("HSV colors are not implemented even in the XPM specification.");
293293
}
294294
if ("None".equals(color)) {
295295
return 0x00000000;

0 commit comments

Comments
 (0)