You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by GitBox <gi...@apache.org> on 2019/10/16 14:41:03 UTC

[GitHub] [any23] lewismc commented on a change in pull request #151: ANY23-445 Review spotbugs issues

lewismc commented on a change in pull request #151: ANY23-445 Review spotbugs issues
URL: https://github.com/apache/any23/pull/151#discussion_r335519114
 
 

 ##########
 File path: api/src/main/java/org/apache/any23/vocab/Vocabulary.java
 ##########
 @@ -142,12 +142,12 @@ public IRI getProperty(String name, IRI defaultValue) {
      */
     public IRI getPropertyCamelCase(String property) {
         String[] names = property.split("\\W");
-        String camelCase = names[0];
+        StringBuffer camelCase = new StringBuffer().append(names[0]);
 
 Review comment:
   When I was writing this I meant to use StringBuilder. Not sure what happened and why I ended up using StringBuffer. Thanks for catching 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:
users@infra.apache.org


With regards,
Apache Git Services