You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2011/04/28 19:33:35 UTC

svn commit: r1097559 - /incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java

Author: scottbw
Date: Thu Apr 28 17:33:35 2011
New Revision: 1097559

URL: http://svn.apache.org/viewvc?rev=1097559&view=rev
Log:
Removed unused method

Modified:
    incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java

Modified: incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java?rev=1097559&r1=1097558&r2=1097559&view=diff
==============================================================================
--- incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java (original)
+++ incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java Thu Apr 28 17:33:35 2011
@@ -71,21 +71,6 @@ public class UpdateUtils {
 	}
 	
 	/**
-	 * Gets an updated widget of a widget
-	 * @param factory
-	 * @param widget the widget to update
-	 * @param onlyUseHttps only get updates using HTTPS, ignore plain HTTP updates
-	 * @return the latest version of the widget, or null if there is no updated version available, or the updated widget isn't valid
-	 */
-	public static W3CWidget getUpdate(W3CWidgetFactory factory, W3CWidget widget, boolean onlyUseHttps){
-		try {
-			return getUpdate(factory, widget.getIdentifier(), widget.getUpdate(), widget.getVersion(), onlyUseHttps);
-		} catch (Exception e) {
-			return null;
-		}
-	}
-	
-	/**
 	 * Gets the latest version of a widget
 	 * @param factory
 	 * @param href the location of the widget Update Description Document



Re: svn commit: r1097559 - /incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java

Posted by Steve Lee <st...@fullmeasure.co.uk>.
On 28 April 2011 20:38, Ross Gardler <rg...@apache.org> wrote:
> Why are you apologising for working on Wookie?  We like it - thanks.

+1

Theoretically you should never remove or change signature of anything
on a public interface, rather create a new version of the interface.
1st law of COM. </geekextreme>

Right, back to the wedding.

Steve

Re: svn commit: r1097559 - /incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java

Posted by Ross Gardler <rg...@apache.org>.
Why are you apologising for working on Wookie?  We like it - thanks. 

Sent from my mobile device.

On 28 Apr 2011, at 20:02, Scott Wilson <sc...@gmail.com> wrote:

> On 28 Apr 2011, at 19:52, Ross Gardler wrote:
> 
>> Ok, I missed it in the earlier commit. I rescind my -1
> 
> Thanks!
> 
> Apologies for all the commits today - implementing the auto-update feature isn't a lot of code, but it touches quite a few different places so I've been trying to break the commits up to make it easier for everyone to see what I'm doing.
> 
> Hopefully I'll have something ready for putting an admin UI on top of soon.
> 
>> 
>> Sent from my mobile device.
>> 
>> On 28 Apr 2011, at 18:53, Scott Wilson <sc...@gmail.com> wrote:
>> 
>>> 
>>> On 28 Apr 2011, at 18:49, Ross Gardler wrote:
>>> 
>>>> On 28 Apr 2011, at 18:33, scottbw@apache.org wrote:
>>>> 
>>>>> Author: scottbw
>>>>> Date: Thu Apr 28 17:33:35 2011
>>>>> New Revision: 1097559
>>>>> 
>>>>> URL: http://svn.apache.org/viewvc?rev=1097559&view=rev
>>>>> Log:
>>>>> Removed unused method
>>>> 
>>>> -1
>>>> 
>>>> The proper way to remove such (public or protected) methods is to deprecate them for a reasonable amount of time first. The method may be unused here and in your Wookie installs but we don't know if this is the case for everyone. 
>>> 
>>> 
>>> Normally yes, though I think an exception is allowed in this case as I only committed the class earlier today 
>>> 
>>>> 
>>>> Ross
>>>> 
>>>> 
>>>>> 
>>>>> Modified:
>>>>> incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
>>>>> 
>>>>> Modified: incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
>>>>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java?rev=1097559&r1=1097558&r2=1097559&view=diff
>>>>> ==============================================================================
>>>>> --- incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java (original)
>>>>> +++ incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java Thu Apr 28 17:33:35 2011
>>>>> @@ -71,21 +71,6 @@ public class UpdateUtils {
>>>>> }
>>>>> 
>>>>> /**
>>>>> -     * Gets an updated widget of a widget
>>>>> -     * @param factory
>>>>> -     * @param widget the widget to update
>>>>> -     * @param onlyUseHttps only get updates using HTTPS, ignore plain HTTP updates
>>>>> -     * @return the latest version of the widget, or null if there is no updated version available, or the updated widget isn't valid
>>>>> -     */
>>>>> -    public static W3CWidget getUpdate(W3CWidgetFactory factory, W3CWidget widget, boolean onlyUseHttps){
>>>>> -        try {
>>>>> -            return getUpdate(factory, widget.getIdentifier(), widget.getUpdate(), widget.getVersion(), onlyUseHttps);
>>>>> -        } catch (Exception e) {
>>>>> -            return null;
>>>>> -        }
>>>>> -    }
>>>>> -    
>>>>> -    /**
>>>>> * Gets the latest version of a widget
>>>>> * @param factory
>>>>> * @param href the location of the widget Update Description Document
>>>>> 
>>>>> 
>>> 
> 

Re: svn commit: r1097559 - /incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java

Posted by Scott Wilson <sc...@gmail.com>.
On 28 Apr 2011, at 19:52, Ross Gardler wrote:

> Ok, I missed it in the earlier commit. I rescind my -1

Thanks!

Apologies for all the commits today - implementing the auto-update feature isn't a lot of code, but it touches quite a few different places so I've been trying to break the commits up to make it easier for everyone to see what I'm doing.

Hopefully I'll have something ready for putting an admin UI on top of soon.

> 
> Sent from my mobile device.
> 
> On 28 Apr 2011, at 18:53, Scott Wilson <sc...@gmail.com> wrote:
> 
>> 
>> On 28 Apr 2011, at 18:49, Ross Gardler wrote:
>> 
>>> On 28 Apr 2011, at 18:33, scottbw@apache.org wrote:
>>> 
>>>> Author: scottbw
>>>> Date: Thu Apr 28 17:33:35 2011
>>>> New Revision: 1097559
>>>> 
>>>> URL: http://svn.apache.org/viewvc?rev=1097559&view=rev
>>>> Log:
>>>> Removed unused method
>>> 
>>> -1
>>> 
>>> The proper way to remove such (public or protected) methods is to deprecate them for a reasonable amount of time first. The method may be unused here and in your Wookie installs but we don't know if this is the case for everyone. 
>> 
>> 
>> Normally yes, though I think an exception is allowed in this case as I only committed the class earlier today 
>> 
>>> 
>>> Ross
>>> 
>>> 
>>>> 
>>>> Modified:
>>>> incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
>>>> 
>>>> Modified: incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
>>>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java?rev=1097559&r1=1097558&r2=1097559&view=diff
>>>> ==============================================================================
>>>> --- incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java (original)
>>>> +++ incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java Thu Apr 28 17:33:35 2011
>>>> @@ -71,21 +71,6 @@ public class UpdateUtils {
>>>> }
>>>> 
>>>> /**
>>>> -     * Gets an updated widget of a widget
>>>> -     * @param factory
>>>> -     * @param widget the widget to update
>>>> -     * @param onlyUseHttps only get updates using HTTPS, ignore plain HTTP updates
>>>> -     * @return the latest version of the widget, or null if there is no updated version available, or the updated widget isn't valid
>>>> -     */
>>>> -    public static W3CWidget getUpdate(W3CWidgetFactory factory, W3CWidget widget, boolean onlyUseHttps){
>>>> -        try {
>>>> -            return getUpdate(factory, widget.getIdentifier(), widget.getUpdate(), widget.getVersion(), onlyUseHttps);
>>>> -        } catch (Exception e) {
>>>> -            return null;
>>>> -        }
>>>> -    }
>>>> -    
>>>> -    /**
>>>>  * Gets the latest version of a widget
>>>>  * @param factory
>>>>  * @param href the location of the widget Update Description Document
>>>> 
>>>> 
>> 


Re: svn commit: r1097559 - /incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java

Posted by Ross Gardler <rg...@apache.org>.
Ok, I missed it in the earlier commit. I rescind my -1

Sent from my mobile device.

On 28 Apr 2011, at 18:53, Scott Wilson <sc...@gmail.com> wrote:

> 
> On 28 Apr 2011, at 18:49, Ross Gardler wrote:
> 
>> On 28 Apr 2011, at 18:33, scottbw@apache.org wrote:
>> 
>>> Author: scottbw
>>> Date: Thu Apr 28 17:33:35 2011
>>> New Revision: 1097559
>>> 
>>> URL: http://svn.apache.org/viewvc?rev=1097559&view=rev
>>> Log:
>>> Removed unused method
>> 
>> -1
>> 
>> The proper way to remove such (public or protected) methods is to deprecate them for a reasonable amount of time first. The method may be unused here and in your Wookie installs but we don't know if this is the case for everyone. 
> 
> 
> Normally yes, though I think an exception is allowed in this case as I only committed the class earlier today 
> 
>> 
>> Ross
>> 
>> 
>>> 
>>> Modified:
>>>  incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
>>> 
>>> Modified: incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
>>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java?rev=1097559&r1=1097558&r2=1097559&view=diff
>>> ==============================================================================
>>> --- incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java (original)
>>> +++ incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java Thu Apr 28 17:33:35 2011
>>> @@ -71,21 +71,6 @@ public class UpdateUtils {
>>>  }
>>> 
>>>  /**
>>> -     * Gets an updated widget of a widget
>>> -     * @param factory
>>> -     * @param widget the widget to update
>>> -     * @param onlyUseHttps only get updates using HTTPS, ignore plain HTTP updates
>>> -     * @return the latest version of the widget, or null if there is no updated version available, or the updated widget isn't valid
>>> -     */
>>> -    public static W3CWidget getUpdate(W3CWidgetFactory factory, W3CWidget widget, boolean onlyUseHttps){
>>> -        try {
>>> -            return getUpdate(factory, widget.getIdentifier(), widget.getUpdate(), widget.getVersion(), onlyUseHttps);
>>> -        } catch (Exception e) {
>>> -            return null;
>>> -        }
>>> -    }
>>> -    
>>> -    /**
>>>   * Gets the latest version of a widget
>>>   * @param factory
>>>   * @param href the location of the widget Update Description Document
>>> 
>>> 
> 

Re: svn commit: r1097559 - /incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java

Posted by Scott Wilson <sc...@gmail.com>.
On 28 Apr 2011, at 18:49, Ross Gardler wrote:

> On 28 Apr 2011, at 18:33, scottbw@apache.org wrote:
> 
>> Author: scottbw
>> Date: Thu Apr 28 17:33:35 2011
>> New Revision: 1097559
>> 
>> URL: http://svn.apache.org/viewvc?rev=1097559&view=rev
>> Log:
>> Removed unused method
> 
> -1
> 
> The proper way to remove such (public or protected) methods is to deprecate them for a reasonable amount of time first. The method may be unused here and in your Wookie installs but we don't know if this is the case for everyone. 


Normally yes, though I think an exception is allowed in this case as I only committed the class earlier today 

> 
> Ross
> 
> 
>> 
>> Modified:
>>   incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
>> 
>> Modified: incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java?rev=1097559&r1=1097558&r2=1097559&view=diff
>> ==============================================================================
>> --- incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java (original)
>> +++ incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java Thu Apr 28 17:33:35 2011
>> @@ -71,21 +71,6 @@ public class UpdateUtils {
>>   }
>> 
>>   /**
>> -     * Gets an updated widget of a widget
>> -     * @param factory
>> -     * @param widget the widget to update
>> -     * @param onlyUseHttps only get updates using HTTPS, ignore plain HTTP updates
>> -     * @return the latest version of the widget, or null if there is no updated version available, or the updated widget isn't valid
>> -     */
>> -    public static W3CWidget getUpdate(W3CWidgetFactory factory, W3CWidget widget, boolean onlyUseHttps){
>> -        try {
>> -            return getUpdate(factory, widget.getIdentifier(), widget.getUpdate(), widget.getVersion(), onlyUseHttps);
>> -        } catch (Exception e) {
>> -            return null;
>> -        }
>> -    }
>> -    
>> -    /**
>>    * Gets the latest version of a widget
>>    * @param factory
>>    * @param href the location of the widget Update Description Document
>> 
>> 


Re: svn commit: r1097559 - /incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java

Posted by Ross Gardler <rg...@apache.org>.
On 28 Apr 2011, at 18:33, scottbw@apache.org wrote:

> Author: scottbw
> Date: Thu Apr 28 17:33:35 2011
> New Revision: 1097559
> 
> URL: http://svn.apache.org/viewvc?rev=1097559&view=rev
> Log:
> Removed unused method

-1

The proper way to remove such (public or protected) methods is to deprecate them for a reasonable amount of time first. The method may be unused here and in your Wookie installs but we don't know if this is the case for everyone. 

Ross


> 
> Modified:
>    incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
> 
> Modified: incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java
> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java?rev=1097559&r1=1097558&r2=1097559&view=diff
> ==============================================================================
> --- incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java (original)
> +++ incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateUtils.java Thu Apr 28 17:33:35 2011
> @@ -71,21 +71,6 @@ public class UpdateUtils {
>    }
>    
>    /**
> -     * Gets an updated widget of a widget
> -     * @param factory
> -     * @param widget the widget to update
> -     * @param onlyUseHttps only get updates using HTTPS, ignore plain HTTP updates
> -     * @return the latest version of the widget, or null if there is no updated version available, or the updated widget isn't valid
> -     */
> -    public static W3CWidget getUpdate(W3CWidgetFactory factory, W3CWidget widget, boolean onlyUseHttps){
> -        try {
> -            return getUpdate(factory, widget.getIdentifier(), widget.getUpdate(), widget.getVersion(), onlyUseHttps);
> -        } catch (Exception e) {
> -            return null;
> -        }
> -    }
> -    
> -    /**
>     * Gets the latest version of a widget
>     * @param factory
>     * @param href the location of the widget Update Description Document
> 
>