Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/BookmarkList.java

    r8509 r8510  
    4545        public Bookmark(Collection<String> list) {
    4646            List<String> array = new ArrayList<>(list);
    47             if(array.size() < 5)
     47            if (array.size() < 5)
    4848                throw new IllegalArgumentException(tr("Wrong number of arguments for bookmark"));
    4949            name = array.get(0);
     
    155155     */
    156156    public final void load() {
    157         DefaultListModel<Bookmark> model = (DefaultListModel<Bookmark>)getModel();
     157        DefaultListModel<Bookmark> model = (DefaultListModel<Bookmark>) getModel();
    158158        model.removeAllElements();
    159159        Collection<Collection<String>> args = Main.pref.getArray("bookmarks", null);
    160         if(args != null) {
     160        if (args != null) {
    161161            List<Bookmark> bookmarks = new LinkedList<>();
    162             for(Collection<String> entry : args) {
     162            for (Collection<String> entry : args) {
    163163                try {
    164164                    bookmarks.add(new Bookmark(entry));
     
    179179    public final void save() {
    180180        List<Collection<String>> coll = new LinkedList<>();
    181         for (Object o : ((DefaultListModel<Bookmark>)getModel()).toArray()) {
     181        for (Object o : ((DefaultListModel<Bookmark>) getModel()).toArray()) {
    182182            String[] array = new String[5];
    183183            Bookmark b = (Bookmark) o;
Note: See TracChangeset for help on using the changeset viewer.