jdk/src/solaris/classes/sun/awt/X11/XFileDialogPeer.java
changeset 438 2ae294e4518c
parent 2 90ce3da70b43
child 715 f16baef3a20e
--- a/jdk/src/solaris/classes/sun/awt/X11/XFileDialogPeer.java	Fri Apr 04 20:32:59 2008 +0400
+++ b/jdk/src/solaris/classes/sun/awt/X11/XFileDialogPeer.java	Mon Apr 07 14:53:51 2008 +0400
@@ -908,7 +908,7 @@
      * Converts the filter into the form which is acceptable by Java's regexps
      */
     private String convert(String filter) {
-        String regex = new String("^" + filter + "$");
+        String regex = "^" + filter + "$";
         regex = regex.replaceAll("\\.", "\\\\.");
         regex = regex.replaceAll("\\?", ".");
         regex = regex.replaceAll("\\*", ".*");