directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1696904 - in /directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor: dialogs/TcpBufferDialog.java wrappers/TcpBufferWrapper.java
Date Fri, 21 Aug 2015 08:33:45 GMT
Author: elecharny
Date: Fri Aug 21 08:33:45 2015
New Revision: 1696904

URL: http://svn.apache.org/r1696904
Log:
Fixed the blocker error, using URI instead of URL.

Modified:
    directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/TcpBufferDialog.java
    directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/TcpBufferWrapper.java

Modified: directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/TcpBufferDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/TcpBufferDialog.java?rev=1696904&r1=1696903&r2=1696904&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/TcpBufferDialog.java
(original)
+++ directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/TcpBufferDialog.java
Fri Aug 21 08:33:45 2015
@@ -20,8 +20,8 @@
 package org.apache.directory.studio.openldap.config.editor.dialogs;
 
 
-import java.net.MalformedURLException;
-import java.net.URL;
+import java.net.URI;
+import java.net.URISyntaxException;
 import java.util.List;
 
 import org.apache.directory.studio.common.ui.AddEditDialog;
@@ -176,9 +176,9 @@ public class TcpBufferDialog extends Add
 
             try
             {
-                URL newUrl = new URL( listenerText.getText() );
+                URI newUri = new URI( listenerText.getText() );
 
-                getEditedElement().setListener( newUrl );
+                getEditedElement().setListener( newUri );
                 listenerText.setForeground( display.getSystemColor( SWT.COLOR_BLACK ) );
                 tcpBufferText.setText( getEditedElement().toString() );
                 
@@ -193,7 +193,7 @@ public class TcpBufferDialog extends Add
                     okButton.setEnabled( false );
                 }
             }
-            catch ( MalformedURLException mue )
+            catch ( URISyntaxException mue )
             {
                 listenerText.setForeground( display.getSystemColor( SWT.COLOR_RED ) );
                 tcpBufferText.setText( getEditedElement().toString() );
@@ -381,7 +381,7 @@ public class TcpBufferDialog extends Add
         {
             sizeText.setText( Long.toString( editedElement.getSize() ) );
             
-            URL listener =  editedElement.getListener();
+            URI listener =  editedElement.getListener();
             
             if ( listener == null )
             {

Modified: directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/TcpBufferWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/TcpBufferWrapper.java?rev=1696904&r1=1696903&r2=1696904&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/TcpBufferWrapper.java
(original)
+++ directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/TcpBufferWrapper.java
Fri Aug 21 08:33:45 2015
@@ -20,6 +20,8 @@
 package org.apache.directory.studio.openldap.config.editor.wrappers;
 
 import java.net.MalformedURLException;
+import java.net.URI;
+import java.net.URISyntaxException;
 import java.net.URL;
 
 import org.apache.directory.api.util.Strings;
@@ -58,7 +60,7 @@ public class TcpBufferWrapper implements
     }
     
     /** The TCP listener (optional) */
-    private URL listener;
+    private URI listener;
 
     /** The type of TCP buffer (either read or write, or both ) (optional) */
     private TcpTypeEnum tcpType;
@@ -83,9 +85,9 @@ public class TcpBufferWrapper implements
         {
             try
             {
-                listener = new URL( url );
+                listener = new URI( url );
             }
-            catch ( MalformedURLException e )
+            catch ( URISyntaxException e )
             {
                 e.printStackTrace();
             }
@@ -121,9 +123,9 @@ public class TcpBufferWrapper implements
                     
                     try
                     {
-                        this.setListener( new URL( urlStr ) );
+                        this.setListener( new URI( urlStr ) );
                     }
-                    catch ( MalformedURLException e )
+                    catch ( URISyntaxException e )
                     {
                         e.printStackTrace();
                     }
@@ -174,7 +176,7 @@ public class TcpBufferWrapper implements
     /**
      * @return the listener
      */
-    public URL getListener()
+    public URI getListener()
     {
         return listener;
     }
@@ -183,7 +185,7 @@ public class TcpBufferWrapper implements
     /**
      * @param listener the listener to set
      */
-    public void setListener( URL listener )
+    public void setListener( URI listener )
     {
         this.listener = listener;
     }



Mime
View raw message