New test.
[mono.git] / mcs / class / System / System.Text.RegularExpressions / Group.cs
index 8cb459d183d235ea576a0921fb9cac57d05feba4..d0642f30e64f3d60eb9bc171c3d71f08fd349dab 100644 (file)
@@ -5,7 +5,7 @@
 //
 // author:     Dan Lewis (dlewis@gmx.co.uk)
 //             (c) 2002
-
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
-
 namespace System.Text.RegularExpressions {
 
        [Serializable]
        public class Group : Capture {
+
+               [MonoTODO ("not thread-safe")]
                public static Group Synchronized (Group inner)
                {
-                       return inner;   // is this enough?
+                       if (inner == null)
+                               throw new ArgumentNullException ("inner");
+                       return inner;
                }
 
                internal static Group Fail = new Group ();