From dd459281c8c143646ed441fd4e36a597ca5dfbc9 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 10 Jan 2010 23:09:48 +0000 Subject: 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 --- htroot/processing/domaingraph/applet/domaingraph.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'htroot/processing') 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); } -- cgit v1.2.3