Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Commit

Permalink
Append single space as a character rather than a String
Browse files Browse the repository at this point in the history
Addresses the warning found by the new version of Sonar
  • Loading branch information
wilkinsona committed Dec 2, 2014
1 parent 6891fbc commit 51db90c
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2010 the original author or authors.
* Copyright 2010-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -138,7 +138,7 @@ private void addCmpFields(EntityBean entityBean, Map<String, String> metadata) {
if (!cmpFields.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (String cmpField : cmpFields) {
sb.append(" ").append(cmpField);
sb.append(' ').append(cmpField);
}
sb.deleteCharAt(0);
metadata.put("CMP Fields", sb.toString());
Expand Down

0 comments on commit 51db90c

Please sign in to comment.