changeset 296:da1499a464b9

Declared a method as static to use it without instantiating an object of its class. gnv-artifacts/trunk@350 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 19 Nov 2009 15:13:11 +0000
parents 255b1b5c52ff
children 3f43392df3f6
files gnv-artifacts/src/main/java/de/intevation/gnv/utils/DistanceCalculator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/utils/DistanceCalculator.java	Tue Nov 17 11:51:33 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/utils/DistanceCalculator.java	Thu Nov 19 15:13:11 2009 +0000
@@ -21,7 +21,7 @@
     public DistanceCalculator() {
     }
     
-    public double calculateDistance(Point p1, Point p2){
+    public static double calculateDistance(Point p1, Point p2){
         double resultValue = 0.0;
         
         double b1 = p1.getY();

http://dive4elements.wald.intevation.org