Ignore:
Timestamp:
2015-10-13T23:50:14+02:00 (10 years 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/gui/preferences/imagery
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java

    r8769 r8870  
    172172    }
    173173
    174     private Long getCacheSize(CacheAccess<String, BufferedImageCacheEntry> cache) {
     174    private static Long getCacheSize(CacheAccess<String, BufferedImageCacheEntry> cache) {
    175175        ICacheStats stats = cache.getStatistics();
    176176        for (IStats cacheStats: stats.getAuxiliaryCacheStats()) {
     
    242242    }
    243243
    244     private DefaultTableModel getTableModel(final CacheAccess<String, BufferedImageCacheEntry> cache) {
     244    private static DefaultTableModel getTableModel(final CacheAccess<String, BufferedImageCacheEntry> cache) {
    245245        final DefaultTableModel tableModel = new DefaultTableModel(
    246246                getCacheStats(cache),
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r8836 r8870  
    9999    }
    100100
    101     private void addSettingsSection(final JPanel p, String name, JPanel section, GBC gbc) {
     101    private static void addSettingsSection(final JPanel p, String name, JPanel section, GBC gbc) {
    102102        final JLabel lbl = new JLabel(name);
    103103        lbl.setFont(lbl.getFont().deriveFont(Font.BOLD));
Note: See TracChangeset for help on using the changeset viewer.