gnodet commented on a change in pull request #268:  [MNG-6702] Improve 
DefaultModelValidator speed
URL: https://github.com/apache/maven/pull/268#discussion_r300884354
 
 

 ##########
 File path: 
maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
 ##########
 @@ -1143,6 +1204,29 @@ private boolean validateBannedCharacters( String 
fieldName, ModelProblemCollecto
         return true;
     }
 
+    @SuppressWarnings( "checkstyle:parameternumber" )
+    private boolean validateBannedCharacters( String prefix, String fieldName, 
ModelProblemCollector problems,
+                                              Severity severity, Version 
version, String string, String sourceHint,
+                                              InputLocationTracker tracker, 
String banned )
+    {
+        if ( string != null )
+        {
+            for ( int i = string.length() - 1; i >= 0; i-- )
 
 Review comment:
   This isn't new code, I'll push a new commit that modifies the existing 
method instead of duplicating it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to