@ -232,8 +232,6 @@ final class DefaultPathContainer implements PathContainer {
private final String valueToMatch ;
private final String valueToMatch ;
private final char [ ] valueToMatchAsChars ;
private final MultiValueMap < String , String > parameters ;
private final MultiValueMap < String , String > parameters ;
@ -243,7 +241,6 @@ final class DefaultPathContainer implements PathContainer {
DefaultPathSegment ( String value , String valueToMatch , MultiValueMap < String , String > params ) {
DefaultPathSegment ( String value , String valueToMatch , MultiValueMap < String , String > params ) {
this . value = value ;
this . value = value ;
this . valueToMatch = valueToMatch ;
this . valueToMatch = valueToMatch ;
this . valueToMatchAsChars = valueToMatch . toCharArray ( ) ;
this . parameters = CollectionUtils . unmodifiableMultiValueMap ( params ) ;
this . parameters = CollectionUtils . unmodifiableMultiValueMap ( params ) ;
}
}
@ -254,7 +251,6 @@ final class DefaultPathContainer implements PathContainer {
this . value = value ;
this . value = value ;
this . valueToMatch = value . contains ( separator . encodedSequence ( ) ) ?
this . valueToMatch = value . contains ( separator . encodedSequence ( ) ) ?
value . replaceAll ( separator . encodedSequence ( ) , separator . value ( ) ) : value ;
value . replaceAll ( separator . encodedSequence ( ) , separator . value ( ) ) : value ;
this . valueToMatchAsChars = this . valueToMatch . toCharArray ( ) ;
this . parameters = EMPTY_PARAMS ;
this . parameters = EMPTY_PARAMS ;
}
}
@ -271,7 +267,7 @@ final class DefaultPathContainer implements PathContainer {
@Override
@Override
public char [ ] valueToMatchAsChars ( ) {
public char [ ] valueToMatchAsChars ( ) {
return this . valueToMatchAsChars ;
return this . valueToMatch . toCharArray ( ) ;
}
}
@Override
@Override