Ignore:
Timestamp:
2015-05-17T02:56:15+02:00 (5 years ago)
Author:
Don-vip
Message:

code style - Unnecessary Final Modifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java

    r8322 r8374  
    151151     * @since 7299
    152152     */
    153     public static final SimpleDateFormat newIsoDateFormat() {
     153    public static SimpleDateFormat newIsoDateFormat() {
    154154        return new SimpleDateFormat("yyyy-MM-dd");
    155155    }
     
    160160     * @since 7299
    161161     */
    162     public static final SimpleDateFormat newIsoDateTimeFormat() {
     162    public static SimpleDateFormat newIsoDateTimeFormat() {
    163163        return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX");
    164164    }
     
    169169     * @since 7299
    170170     */
    171     public static final SimpleDateFormat newOsmApiDateTimeFormat() {
     171    public static SimpleDateFormat newOsmApiDateTimeFormat() {
    172172        // Example: "2010-09-07 14:39:41 UTC".
    173173        // Always parsed with US locale regardless of the current locale in JOSM
     
    181181     * @since 7299
    182182     */
    183     public static final DateFormat getDateFormat(int dateStyle) {
     183    public static DateFormat getDateFormat(int dateStyle) {
    184184        if (PROP_ISO_DATES.get()) {
    185185            return newIsoDateFormat();
     
    196196     * @since 7299
    197197     */
    198     public static final String formatDate(Date date, int dateStyle) {
     198    public static String formatDate(Date date, int dateStyle) {
    199199        CheckParameterUtil.ensureParameterNotNull(date, "date");
    200200        return getDateFormat(dateStyle).format(date);
     
    207207     * @since 7299
    208208     */
    209     public static final DateFormat getTimeFormat(int timeStyle) {
     209    public static DateFormat getTimeFormat(int timeStyle) {
    210210        if (PROP_ISO_DATES.get()) {
    211211            // This is not strictly conform to ISO 8601. We just want to avoid US-style times such as 3.30pm
     
    222222     * @since 7299
    223223     */
    224     public static final String formatTime(Date time, int timeStyle) {
     224    public static String formatTime(Date time, int timeStyle) {
    225225        CheckParameterUtil.ensureParameterNotNull(time, "time");
    226226        return getTimeFormat(timeStyle).format(time);
     
    234234     * @since 7299
    235235     */
    236     public static final DateFormat getDateTimeFormat(int dateStyle, int timeStyle) {
     236    public static DateFormat getDateTimeFormat(int dateStyle, int timeStyle) {
    237237        if (PROP_ISO_DATES.get()) {
    238238            // This is not strictly conform to ISO 8601. We just want to avoid US-style times such as 3.30pm
     
    252252     * @since 7299
    253253     */
    254     public static final String formatDateTime(Date datetime, int dateStyle, int timeStyle) {
     254    public static String formatDateTime(Date datetime, int dateStyle, int timeStyle) {
    255255        CheckParameterUtil.ensureParameterNotNull(datetime, "datetime");
    256256        return getDateTimeFormat(dateStyle, timeStyle).format(datetime);
Note: See TracChangeset for help on using the changeset viewer.