Ignore:
Timestamp:
2015-10-13T23:50:14+02:00 (9 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/tools
Files:
4 edited

Legend:

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

    r8419 r8870  
    6464     * calculate it once) *
    6565     */
    66     private String getChunk(String s, int slength, int marker) {
     66    private static String getChunk(String s, int slength, int marker) {
    6767        StringBuilder chunk = new StringBuilder();
    6868        char c = s.charAt(marker);
  • trunk/src/org/openstreetmap/josm/tools/MultikeyActionsHandler.java

    r8846 r8870  
    208208    }
    209209
    210     private String formatMenuText(KeyStroke keyStroke, String index, String description) {
     210    private static String formatMenuText(KeyStroke keyStroke, String index, String description) {
    211211        String shortcutText = KeyEvent.getKeyModifiersText(keyStroke.getModifiers()) + '+'
    212212                + KeyEvent.getKeyText(keyStroke.getKeyCode()) + ',' + index;
  • trunk/src/org/openstreetmap/josm/tools/WikiReader.java

    r8849 r8870  
    106106    }
    107107
    108     private String readNormal(BufferedReader in, boolean html) throws IOException {
     108    private static String readNormal(BufferedReader in, boolean html) throws IOException {
    109109        StringBuilder b = new StringBuilder();
    110110        for (String line = in.readLine(); line != null; line = in.readLine()) {
  • trunk/src/org/openstreetmap/josm/tools/date/PrimaryDateParser.java

    r8372 r8870  
    4040    }
    4141
    42     private boolean isDateInShortStandardFormat(String date) {
     42    private static boolean isDateInShortStandardFormat(String date) {
    4343        char[] dateChars;
    4444        // We can only parse the date if it is in a very specific format.
     
    107107    }
    108108
    109     private boolean isDateInLongStandardFormat(String date) {
     109    private static boolean isDateInLongStandardFormat(String date) {
    110110        char[] dateChars;
    111111        // We can only parse the date if it is in a very specific format.
Note: See TracChangeset for help on using the changeset viewer.