Changeset 11613 in josm


Ignore:
Timestamp:
2017-02-25T14:27:05+01:00 (11 months ago)
Author:
Don-vip
Message:

sonar - squid:S2325 - "private" methods that don't access instance data should be "static"

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r11553 r11613  
    16691669    }
    16701670
    1671     private Match parseExpressionStep2(List<Object> list) {
     1671    private static Match parseExpressionStep2(List<Object> list) {
    16721672        Match result = null;
    16731673        for (int i = list.size() - 1; i >= 0; i--) {
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java

    r11587 r11613  
    12361236    }
    12371237
    1238 
    12391238    /**
    12401239     * Draw a dotted heat map
     
    12451244     * @param drawSize        draw size of draw element
    12461245     */
    1247     private void drawHeatGrayDotMap(Graphics2D gB, MapView mv, List<WayPoint> listSegm, int drawSize) {
     1246    private static void drawHeatGrayDotMap(Graphics2D gB, MapView mv, List<WayPoint> listSegm, int drawSize) {
    12481247
    12491248        // typical rendering rate -> use realtime preview instead of accurate display
     
    12891288     * @param dropRate          Pixel render drop rate
    12901289     */
    1291     private void drawHeatSurfaceLine(Graphics2D g, Point fromPnt, Point toPnt, int drawSize, double rmsSizeX, double rmsSizeY, double dropRate) {
     1290    private static void drawHeatSurfaceLine(Graphics2D g,
     1291            Point fromPnt, Point toPnt, int drawSize, double rmsSizeX, double rmsSizeY, double dropRate) {
    12921292
    12931293        // collect frequently used items
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r11218 r11613  
    384384     * @return true if the dot directory should be used
    385385     */
    386     private boolean useDotDirectory() {
     386    private static boolean useDotDirectory() {
    387387        return getDotDirectory().exists();
    388388    }
Note: See TracChangeset for help on using the changeset viewer.