Changeset 12489 in josm


Ignore:
Timestamp:
2017-07-22T16:15:09+02:00 (7 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
Files:
3 edited

Legend:

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

    r12467 r12489  
    16061606        }
    16071607
    1608         private boolean presetNameMatch(String name, TaggingPreset preset, boolean matchStrictly) {
     1608        private static boolean presetNameMatch(String name, TaggingPreset preset, boolean matchStrictly) {
    16091609            if (matchStrictly) {
    16101610                return name.equalsIgnoreCase(preset.getRawName());
  • trunk/src/org/openstreetmap/josm/io/session/SessionReader.java

    r12488 r12489  
    615615    }
    616616
    617     private SessionViewportData readViewportData(Element root) {
     617    private static SessionViewportData readViewportData(Element root) {
    618618        Element viewportEl = getElementByTagName(root, "viewport");
    619619        if (viewportEl == null) return null;
     
    639639    }
    640640
    641     private SessionProjectionChoiceData readProjectionChoiceData(Element root) {
     641    private static SessionProjectionChoiceData readProjectionChoiceData(Element root) {
    642642        Element projectionEl = getElementByTagName(root, "projection");
    643643        if (projectionEl == null) return null;
  • trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java

    r12487 r12489  
    255255    }
    256256
    257     private void writeViewPort(Element root) {
     257    private static void writeViewPort(Element root) {
    258258        Document doc = root.getOwnerDocument();
    259259        Element viewportEl = doc.createElement("viewport");
     
    271271    }
    272272
    273     private void writeProjection(Element root) {
     273    private static void writeProjection(Element root) {
    274274        Document doc = root.getOwnerDocument();
    275275        Element projectionEl = doc.createElement("projection");
Note: See TracChangeset for help on using the changeset viewer.