@@ -272,8 +272,8 @@ FormatSpecifier parseSpecifier() {
272
272
spec .raw = input .substring (spec .startPos , spec .endPos );
273
273
274
274
// Add debug here to check the state before returning
275
- System .err .println ("DEBUG: Before return - isValid=" + spec .isValid +
276
- ", errorMessage='" + spec .errorMessage + "'" );
275
+ // System.err.println("DEBUG: Before return - isValid=" + spec.isValid +
276
+ // ", errorMessage='" + spec.errorMessage + "'");
277
277
278
278
// Mark as invalid if we found spaces in the format
279
279
if (hasInvalidSpace ) {
@@ -285,8 +285,8 @@ FormatSpecifier parseSpecifier() {
285
285
}
286
286
287
287
// Add debug after validation
288
- System .err .println ("DEBUG: After validation - isValid= " + spec .isValid +
289
- " , errorMessage='" + spec .errorMessage + "'" );
288
+ // System.err.println("DEBUG handleInvalidSpecifier: raw=' " + spec.raw +
289
+ // "' , errorMessage='" + spec.errorMessage + "'");
290
290
291
291
return spec ;
292
292
}
@@ -303,9 +303,9 @@ Integer parseNumber() {
303
303
}
304
304
305
305
void validateSpecifier (FormatSpecifier spec ) {
306
- System .err .println ("DEBUG validateSpecifier: raw='" + spec .raw +
307
- "', vectorFlag=" + spec .vectorFlag +
308
- ", conversionChar='" + spec .conversionChar + "'" );
306
+ // System.err.println("DEBUG validateSpecifier: raw='" + spec.raw +
307
+ // "', vectorFlag=" + spec.vectorFlag +
308
+ // ", conversionChar='" + spec.conversionChar + "'");
309
309
// Special case: %*v formats are valid
310
310
if (spec .vectorFlag && spec .widthFromArg ) {
311
311
// This is a valid vector format with custom separator
@@ -324,10 +324,10 @@ void validateSpecifier(FormatSpecifier spec) {
324
324
if (spec .vectorFlag ) {
325
325
// Vector flag is only valid with certain conversions
326
326
String validVectorConversions = "diouxXbB" ; // Remove 's'
327
- System .err .println ("DEBUG: Checking vector conversion '" + spec .conversionChar +
328
- "' in '" + validVectorConversions + "'" );
329
- if (validVectorConversions .indexOf (spec .conversionChar ) < 0 ) {
330
- System .err .println ("DEBUG: Setting invalid for vector format" );
327
+ // System.err.println("DEBUG: Checking vector conversion '" + spec.conversionChar +
328
+ // "' in '" + validVectorConversions + "'");
329
+ if (validVectorConversions .indexOf (spec .conversionChar ) < 0 ) {
330
+ // System.err.println("DEBUG: Setting invalid for vector format");
331
331
spec .isValid = false ;
332
332
spec .errorMessage = "INVALID" ;
333
333
return ;
0 commit comments