Skip to content

Commit 3781b64

Browse files
committed
PR Fix
1 parent d56f892 commit 3781b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/cyclonedx/util/serializer/SerializerUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static boolean shouldSerializeField(Object obj, Version version, String f
4444
}
4545

4646
public static void serializeProperty(String propertyName, Property prop, ToXmlGenerator xmlGenerator) throws IOException {
47-
xmlGenerator.writeFieldName("environmentVar");
47+
xmlGenerator.writeFieldName(propertyName);
4848
xmlGenerator.writeStartObject();
4949
xmlGenerator.setNextIsAttribute(true);
5050
xmlGenerator.writeFieldName("name");

0 commit comments

Comments
 (0)