src/main/java/de/qaware/xff/util/uri/UriComponents.java
//squid:S881  (increment < length) is a standard loop construct
S881  (increment < length) is a standard loop construct
S881 ( increment < length ) is a standard loop construct
@SuppressWarnings({"squid:S881"})
	static void verifyUriComponent(/*@Nullable*/ String source, URIComponentType type) {
		if (source == null) {
			return;
		}
		int length = source.length();
		int pos = -1;
		while (++pos < length) {
			char currentChar = source.charAt(pos);
			if (currentChar == '%') {
				pos = verifyPercentEncodeSequence(source, length, pos);
			} else if (!type.isAllowedCharacter(currentChar)) {
				throw new IllegalArgumentException("Invalid character '" + currentChar + "' for " +
						type.name() + " in \"" + source + "\"");
			}
		}
	}
@ SuppressWarnings ( { "squid:S881" } ) static void verifyUriComponent ( /*@Nullable*/ String source , URIComponentType type ) { if ( source == null ) { return ; } int length = source . length ( ) ; int pos = - 1 ; while ( ++ pos < length ) { char currentChar = source . charAt ( pos ) ; if ( currentChar == '%' ) { pos = verifyPercentEncodeSequence ( source , length , pos ) ; } else if ( ! type . isAllowedCharacter ( currentChar ) ) { throw new IllegalArgumentException ( "Invalid character '" + currentChar + "' for " + type . name ( ) + " in \"" + source + "\"" ) ; } } }
squid:S881  (increment < length) is a standard loop construct
squid : S881 ( increment < length ) is a standard loop construct