diff options
| author | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2010-01-10 23:09:48 +0000 |
|---|---|---|
| committer | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2010-01-10 23:09:48 +0000 |
| commit | dd459281c8c143646ed441fd4e36a597ca5dfbc9 (patch) | |
| tree | 4956e1b9cd3d07de37add3943bccce1ddc2244a9 /htroot/processing/domaingraph | |
| parent | eac2daf2e8b24a364382901d2dd05d925dc60509 (diff) | |
applied code changes that are recommended by PMD
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6563 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/processing/domaingraph')
| -rwxr-xr-x | htroot/processing/domaingraph/applet/domaingraph.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/htroot/processing/domaingraph/applet/domaingraph.java b/htroot/processing/domaingraph/applet/domaingraph.java index a212a8c6e..cf67db7bb 100755 --- a/htroot/processing/domaingraph/applet/domaingraph.java +++ b/htroot/processing/domaingraph/applet/domaingraph.java @@ -11,10 +11,10 @@ import processing.core.*; import traer.physics.*; import traer.animation.*; impo -final float NODE_SIZE = 6; -final float EDGE_LENGTH = 30; -final float EDGE_STRENGTH = 0.001f; -final float SPACER_STRENGTH = 250; +final static float NODE_SIZE = 6; +final static float EDGE_LENGTH = 30; +final static float EDGE_STRENGTH = 0.001f; +final static float SPACER_STRENGTH = 250; ParticleSystem physics; Smoother3D centroid; @@ -195,7 +195,7 @@ public HashMap parseProps(String s) { p = l[i].indexOf("="); if (p > 0) { z = l[i].substring(p + 1).trim(); - if (z.charAt(0) == '"') z = z.substring(1); + if (z.length() > 0 && z.charAt(0) == '"') z = z.substring(1); if (z.charAt(z.length() - 1) == '"') z = z.substring(0, z.length() - 1); map.put(l[i].substring(0, p), z); } |
