Changeset 9822 in josm


Ignore:
Timestamp:
2016-02-18T13:27:27+01:00 (9 years ago)
Author:
bastiK
Message:

fix warnings

Location:
trunk/src/org/openstreetmap/josm/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r9821 r9822  
    13991399    }
    14001400
    1401     private class SettingToXml implements SettingVisitor {
     1401    private static class SettingToXml implements SettingVisitor {
    14021402        private final StringBuilder b;
    14031403        private final boolean noPassword;
     
    15151515     * @param settings preferences settings
    15161516     * @param nopass if password must be excluded
     1517     * @param defaults true, if default values are converted to XML, false for
     1518     * regular preferences
    15171519     * @return XML
    15181520     */
  • trunk/src/org/openstreetmap/josm/data/preferences/PreferencesReader.java

    r9821 r9822  
    127127                String localName = parser.getLocalName();
    128128                if (!topLevelElementName.equals(localName)) {
    129                     throw new XMLStreamException(tr("Expected element ''{0}'', but got ''{1}''", topLevelElementName, localName), parser.getLocation());
     129                    throw new XMLStreamException(
     130                            tr("Expected element ''{0}'', but got ''{1}''", topLevelElementName, localName),
     131                            parser.getLocation());
    130132                }
    131133                try {
     
    322324     * Check if the current element is nil (meaning the value of the setting is null).
    323325     * @return true, if the current element is nil
    324      * @see https://msdn.microsoft.com/en-us/library/2b314yt2(v=vs.85).aspx
     326     * @see <a href="https://msdn.microsoft.com/en-us/library/2b314yt2(v=vs.85).aspx">Nillable Attribute on MS Developer Network</a>
    325327     */
    326328    private boolean isNil() {
Note: See TracChangeset for help on using the changeset viewer.