Skip to content

Commit

Permalink
Merge pull request #17 from av1m/I2B2_ToXMLPropertiesImprovements
Browse files Browse the repository at this point in the history
Eliminating bad practices on toXMLProperties
  • Loading branch information
GabG02 authored May 2, 2020
2 parents 92693c3 + a748f10 commit d505681
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@ public class XMLProperties {

private Properties properties;

private final static Logger LOGGER = LoggerFactory.getLogger(XMLProperties.class);
private static final Logger LOGGER = LoggerFactory.getLogger(XMLProperties.class);

public XMLProperties() {
this.properties = new Properties();
}

/**
* toXml transform an Apartment into an xml File. The user specify the file in
* parameter
* toXml transform an Apartment object into an XML File. The user specify the
* file in parameter
*
* @param a the apartment to put into an xml file
* @param xmlFile an file object where the apartment will be store. Warning : if
* @param a the apartment to put into an XML file
* @param xmlFile a file object where the apartment will be store. Warning : if
* the file already exists, it will be erased.
* @throws IOException
* @throws IllegalArgumentException
* @throws IllegalAccessException
*/
public void toXML(Apartment a, OutputStream xmlFile) throws IOException {

Expand Down

0 comments on commit d505681

Please sign in to comment.