directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r576473 - /directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java
Date Mon, 17 Sep 2007 15:12:28 GMT
Author: pamarcelot
Date: Mon Sep 17 08:12:28 2007
New Revision: 576473

URL: http://svn.apache.org/viewvc?rev=576473&view=rev
Log:
Removed unnecessary transformation.

Modified:
    directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java

Modified: directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java?rev=576473&r1=576472&r2=576473&view=diff
==============================================================================
--- directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java
(original)
+++ directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java
Mon Sep 17 08:12:28 2007
@@ -20,7 +20,6 @@
 package org.apache.directory.studio.schemaeditor.model.io;
 
 
-import java.io.UnsupportedEncodingException;
 import java.util.List;
 
 import org.apache.directory.studio.schemaeditor.model.Project;
@@ -117,14 +116,7 @@
             String name = project.getName();
             if ( ( name != null ) && ( !name.equals( "" ) ) )
             {
-                try
-                {
-                    element.addAttribute( NAME_TAG, new String( name.getBytes( "UTF-8" ),
"UTF-8" ) );
-                }
-                catch ( UnsupportedEncodingException e )
-                {
-                    // Will never occur
-                }
+                element.addAttribute( NAME_TAG, name );
             }
 
             // Type



Mime
View raw message