Better docs, as requested by Matt

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4681 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2010-11-15 18:24:15 +00:00
parent 5466365575
commit 2af508ef83
1 changed files with 5 additions and 1 deletions

View File

@ -133,7 +133,11 @@ public class CommandLineUtils {
}
}
// TODO -- is there a better way to do this?
// The problem here is that some of the fields being output are Objects - and those
// Objects don't overload toString() so that the output is just the memory pointer
// to the Object. Because those values are non-deterministic, they don't merge well
// into BAM/VCF headers (plus, it's just damn ugly). Perhaps there's a better way to
// do this, but at least this one works for the moment.
private static final String pointerRegexp = ".+@[0-9a-fA-F]+$";
private static boolean isObjectPointer(String s) {
return s != null && s.matches(pointerRegexp);