Ignore:
Timestamp:
2013-10-02T00:28:15+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/Findbugs / Performance - Explicit garbage collection; extremely dubious

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java

    r6248 r6281  
    11// License: GPL. See LICENSE file for details.
    2 
    32package org.openstreetmap.josm.gui.layer.geoimage;
    43
     
    5352        layer.updateOffscreenBuffer = true;
    5453        Main.map.mapView.repaint();
    55         (new Thread() {             // clean up the garbage - shouldn't hurt
    56             @Override
    57             public void run() {
    58                 try {
    59                     Thread.sleep(200);
    60                 }
    61                 catch (InterruptedException ie) {}
    62                 System.gc();
    63             }
    64         }).start();
    65 
    6654    }
    6755
Note: See TracChangeset for help on using the changeset viewer.