modules/core/domain/src/main/java/org/rhq/core/domain/resource/flyweight/AutoGroupCompositeFlyweight.java
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6911fdf8b0318106ea8b5ca8598836643986bd97
Author: Joseph Marques <joseph(a)redhat.com>
Date: Fri Apr 30 16:45:36 2010 -0400
fix build errors:
* core/domain can not reference JDK6-only classes
* use simple string concatenation to replace String.format()
diff --git
a/modules/core/domain/src/main/java/org/rhq/core/domain/resource/flyweight/AutoGroupCompositeFlyweight.java
b/modules/core/domain/src/main/java/org/rhq/core/domain/resource/flyweight/AutoGroupCompositeFlyweight.java
index b779a63..46af2db 100644
---
a/modules/core/domain/src/main/java/org/rhq/core/domain/resource/flyweight/AutoGroupCompositeFlyweight.java
+++
b/modules/core/domain/src/main/java/org/rhq/core/domain/resource/flyweight/AutoGroupCompositeFlyweight.java
@@ -82,7 +82,7 @@ public class AutoGroupCompositeFlyweight implements Serializable {
this.resourceType = resourceType;
this.memberCount = memberCount;
if (isDuplicateResourceTypeName) {
- this.name = String.format("%s (%s plugin)",
this.resourceType.getName(), this.resourceType.getPlugin());
+ this.name = this.resourceType.getName() + " (" +
this.resourceType.getPlugin() + " plugin)";
} else {
this.name = this.resourceType.getName();
}
Show replies by date