From 304c354d2ca0ce41553a33519ecbf434564fcefd Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 15 Sep 2013 00:26:23 +0200 Subject: [PATCH] Improve StringListWriter constructor. --- src/fr/devinsy/util/StringListWriter.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/fr/devinsy/util/StringListWriter.java b/src/fr/devinsy/util/StringListWriter.java index bf9842d..069b310 100755 --- a/src/fr/devinsy/util/StringListWriter.java +++ b/src/fr/devinsy/util/StringListWriter.java @@ -31,6 +31,21 @@ public class StringListWriter extends Writer this.out = new StringList(size); } + /** + * + */ + StringListWriter(final StringList target) + { + if (target == null) + { + throw new NullPointerException("target is null."); + } + else + { + this.out = target; + } + } + /* * */