Ignore:
Timestamp:
2011-11-20T20:47:15+01:00 (12 years ago)
Author:
bastiK
Message:

upgrade historic users to real users, so their CT status can be shown in the history panel

File:
1 edited

Legend:

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

    r4601 r4602  
    11// License: GPL. Copyright 2007 by Immanuel Scholz and others
    22package org.openstreetmap.josm.data.osm;
     3
     4import static org.openstreetmap.josm.tools.I18n.tr;
    35
    46import java.io.BufferedReader;
     
    3537    private static HashSet<Long> relicensingUsers = null;
    3638    private static HashSet<Long> nonRelicensingUsers = null;
     39    private final static User anonymous = createLocalUser(tr("<anonymous>"));
    3740
    3841    private static long getNextLocalUid() {
     
    110113        }
    111114        return ret;
     115    }
     116
     117    public static User getAnonymous() {
     118        return anonymous;
    112119    }
    113120
     
    185192    public static final int STATUS_ANONYMOUS = 4;
    186193
    187     /** 
     194    /**
    188195    * Finds out this user's relicensing status and saves it for quicker
    189196    * access.
Note: See TracChangeset for help on using the changeset viewer.