Skip to content

Commit 2f6b1a1

Browse files
committed
refactor(dto): clean up unused import in MaxByteLength
1 parent 74717a2 commit 2f6b1a1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

backend/src/main/java/ca/bc/gov/nrs/ilcr/dto/base/MaxByteLength.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package ca.bc.gov.nrs.ilcr.dto.base;
22

3-
import ca.bc.gov.nrs.ilcr.exception.ScheduleNotSavedException;
43
import jakarta.validation.Constraint;
54
import jakarta.validation.Payload;
65
import java.lang.annotation.Documented;
@@ -18,8 +17,8 @@
1817
* {@code ALL_TAB_COLUMNS} reports {@code CHAR_USED = 'B'} for {@code CAMP_REPORT.CAMP_NAME} (30)
1918
* and {@code CAMP_REPORT.COMMENTS} (4000). {@code @Size} measures Java characters, so a name of 30
2019
* accented or CJK characters satisfies it and then overflows a 30-BYTE column: Oracle raises
21-
* ORA-12899, the service can only map that {@code DataAccessException} to {@code
22-
* ScheduleNotSavedException}, and the licensee gets an opaque 500 on an ordinary save. This
20+
* ORA-12899, the service can only map that {@code DataAccessException} to {@link
21+
* ca.bc.gov.nrs.ilcr.exception.ScheduleNotSavedException ScheduleNotSavedException}, and the licensee gets an opaque 500 on an ordinary save. This
2322
* constraint turns that into a clean 400 at the same field. The character cap stays because it is
2423
* the LEGACY bound (the screen's own {@code maxlength}) and is the tighter one for ASCII input,
2524
* which is effectively all stored data today.

0 commit comments

Comments
 (0)