Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
evie-lau committed Jul 6, 2023
1 parent 325ca36 commit 43be07b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public void writeAppMonitorConfigXmlDocument(File serverDirectory) throws IOExce
}

ServerConfigXmlDocument configDocument = ServerConfigXmlDocument.newInstance();
configDocument.createGeneratedComment(tool);
configDocument.createServerElement("applicationMonitor", attributes);;
configDocument.createGeneratedByComment(tool);
configDocument.createServerElementWithAttributes("applicationMonitor", attributes);
configDocument.writeXMLDocument(appMonXml);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corporation 2019, 2022.
* (C) Copyright IBM Corporation 2019, 2023.
*
* 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 @@ -81,7 +81,7 @@ public void createComment(Element elem, String comment) {
* Creates comment "# Generated by liberty-{}-plugin",
* @param tool - Which tool, maven or gradle, is generating the comment
*/
public void createGeneratedComment(String tool) {
public void createGeneratedByComment(String tool) {
String comment = String.format(HEADER, tool);
createComment(comment);
}
Expand Down Expand Up @@ -156,7 +156,7 @@ public boolean removeFMComment(String comment) {
* @param elementName - name of the element, ie: <applicationMonitor>
* @param attributes - HashMap of the <attributes,values>
*/
public void createServerElement(String elementName, HashMap<String, String> attributes) {
public void createServerElementWithAttributes(String elementName, HashMap<String, String> attributes) {
Element element = doc.createElement(elementName);
for (String attributeString : attributes.keySet()) {
element.setAttribute(attributeString, attributes.get(attributeString));
Expand Down

0 comments on commit 43be07b

Please sign in to comment.