aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/openxml4j/opc/PackageRelationship.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ooxml/java/org/apache/poi/openxml4j/opc/PackageRelationship.java')
-rw-r--r--src/ooxml/java/org/apache/poi/openxml4j/opc/PackageRelationship.java19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/PackageRelationship.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/PackageRelationship.java
index 174f2f901b..9f82d512fa 100644
--- a/src/ooxml/java/org/apache/poi/openxml4j/opc/PackageRelationship.java
+++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/PackageRelationship.java
@@ -210,18 +210,11 @@ public final class PackageRelationship {
@Override
public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append(id == null ? "id=null" : "id=" + id);
- sb.append(container == null ? " - container=null" : " - container="
- + container);
- sb.append(relationshipType == null ? " - relationshipType=null"
- : " - relationshipType=" + relationshipType);
- sb.append(source == null ? " - source=null" : " - source="
- + getSourceURI().toASCIIString());
- sb.append(targetUri == null ? " - target=null" : " - target="
- + getTargetURI().toASCIIString());
- sb.append(targetMode == null ? ",targetMode=null" : ",targetMode="
- + targetMode);
- return sb.toString();
+ return (id == null ? "id=null" : "id=" + id) +
+ (container == null ? " - container=null" : " - container=" + container) +
+ (relationshipType == null ? " - relationshipType=null" : " - relationshipType=" + relationshipType) +
+ (source == null ? " - source=null" : " - source=" + getSourceURI().toASCIIString()) +
+ (targetUri == null ? " - target=null" : " - target=" + getTargetURI().toASCIIString()) +
+ (targetMode == null ? ",targetMode=null" : ",targetMode=" + targetMode);
}
}