// http://code.google.com/p/javaapiforkml/issues/detail?id=10
// changed:
// String[] coords = coordinates.replaceAll(",[ ]+?", ",").trim().split(",");
// to:
// String[] coords = coordinates.replaceAll(",\\s+", ",").trim().split(",");
final JVar varCoords = stringArgConstructor.body().decl(stringClass.array(), "coords",
stringConstructorArg.invoke("replaceAll").arg(",\\s+").arg(",").invoke("trim").invoke("split").arg(","));
// CODE: if ((coords < 1) && (coords > 3)) {throw IllegalArgumentException}
stringArgConstructor.body()._if(
JExpr.ref(varCoords.name()).ref("length").lt(JExpr.lit(1)).cand(JExpr.ref(varCoords.name()).ref("length").gt(JExpr.lit(3))))
._then()._throw(JExpr._new(illegalArgumentExceptionClass));