[DEV] set case sensitive tag availlable for enum

This commit is contained in:
Edouard DUPIN 2022-04-26 00:04:11 +02:00
parent 6adc3b3897
commit 9069a26622
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import java.lang.annotation.Target;
* Marker annotation that to set the element is case sensitive or not. * Marker annotation that to set the element is case sensitive or not.
* *
*/ */
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER }) @Target({ ElementType.FIELD, ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@ExmlAnnotation @ExmlAnnotation
public @interface XmlCaseSensitive { public @interface XmlCaseSensitive {

View File

@ -340,7 +340,7 @@ public class ParseXml {
if (this.builder.isPackText(parent)) { if (this.builder.isPackText(parent)) {
final int endOfText = iParseFindTextPackEnd(data, pos.value); final int endOfText = iParseFindTextPackEnd(data, pos.value);
final String valueText = data.substring(pos.value, endOfText + 1); final String valueText = data.substring(pos.value, endOfText + 1);
Log.error("find text '{}' ==> new Pos={}", valueText, data.charAt(endOfText + 1)); Log.verbose("find text '{}' ==> new Pos='{}'", valueText, data.charAt(endOfText + 1));
pos.value = endOfText; pos.value = endOfText;
this.builder.newText(parent, valueText); this.builder.newText(parent, valueText);
return true; return true;