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/data/projection/datum
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java

    r8510 r8870  
    8383    private NTV2SubGrid lastSubGrid;
    8484
    85     private void readBytes(InputStream in, byte[] b) throws IOException {
     85    private static void readBytes(InputStream in, byte[] b) throws IOException {
    8686        if (in.read(b) < b.length) {
    8787            Main.error("Failed to read expected amount of bytes ("+ b.length +") from stream");
     
    167167     * @return an array of top level Sub Grids with lower level Sub Grids set.
    168168     */
    169     private NTV2SubGrid[] createSubGridTree(NTV2SubGrid[] subGrid) {
     169    private static NTV2SubGrid[] createSubGridTree(NTV2SubGrid[] subGrid) {
    170170        int topLevelCount = 0;
    171171        Map<String, List<NTV2SubGrid>> subGridMap = new HashMap<>();
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java

    r8512 r8870  
    149149    }
    150150
    151     private void readBytes(InputStream in, byte[] b) throws IOException {
     151    private static void readBytes(InputStream in, byte[] b) throws IOException {
    152152        if (in.read(b) < b.length) {
    153153            Main.error("Failed to read expected amount of bytes ("+ b.length +") from stream");
     
    209209     * @return interpolated value
    210210     */
    211     private double interpolate(float a, float b, float c, float d, double x, double y) {
     211    private static double interpolate(float a, float b, float c, float d, double x, double y) {
    212212        return a + (((double) b - (double) a) * x) + (((double) c - (double) a) * y) +
    213213        (((double) a + (double) d - b - c) * x * y);
Note: See TracChangeset for help on using the changeset viewer.