Re: svn commit: r1792481 - /pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: svn commit: r1792481 - /pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java

Roger and Beth Whitcomb
Hey Sandro,

     Do you think this change is necessary once we go back to lower
versions with Java 9?  I mean, %02d will expand to three digits if
needed, with a minimum of 2 (in case of values less than 10)....

~Roger


On 4/24/17 8:12 AM, [hidden email] wrote:

> Author: smartini
> Date: Mon Apr 24 15:12:15 2017
> New Revision: 1792481
>
> URL: http://svn.apache.org/viewvc?rev=1792481&view=rev
> Log:
> PIVOT-993, update formatting string
>
> Modified:
>      pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java
>
> Modified: pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java
> URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java?rev=1792481&r1=1792480&r2=1792481&view=diff
> ==============================================================================
> --- pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java (original)
> +++ pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java Mon Apr 24 15:12:15 2017
> @@ -114,7 +114,7 @@ public class Version implements Comparab
>           String string = this.majorRevision
>               + "." + this.minorRevision
>               + "." + this.maintenanceRevision
> -            + "_" + String.format("%02d", this.updateRevision);
> +            + "_" + String.format("%03d", this.updateRevision);
>  
>           if (this.build != null) {
>               string += "-" + this.build;
>
>
>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: svn commit: r1792481 - /pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java

Sandro Martini
Uh no sorry too much hurry ... now I'll revert this, sorry.


2017-04-24 17:20 GMT+02:00 Roger and Beth Whitcomb
<[hidden email]>:

> Hey Sandro,
>
>     Do you think this change is necessary once we go back to lower versions
> with Java 9?  I mean, %02d will expand to three digits if needed, with a
> minimum of 2 (in case of values less than 10)....
>
> ~Roger
>
>
> On 4/24/17 8:12 AM, [hidden email] wrote:
>>
>> Author: smartini
>> Date: Mon Apr 24 15:12:15 2017
>> New Revision: 1792481
>>
>> URL: http://svn.apache.org/viewvc?rev=1792481&view=rev
>> Log:
>> PIVOT-993, update formatting string
>>
>> Modified:
>>      pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java
>>
>> Modified: pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java
>> URL:
>> http://svn.apache.org/viewvc/pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java?rev=1792481&r1=1792480&r2=1792481&view=diff
>>
>> ==============================================================================
>> --- pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java
>> (original)
>> +++ pivot/branches/2.0.x/core/src/org/apache/pivot/util/Version.java Mon
>> Apr 24 15:12:15 2017
>> @@ -114,7 +114,7 @@ public class Version implements Comparab
>>           String string = this.majorRevision
>>               + "." + this.minorRevision
>>               + "." + this.maintenanceRevision
>> -            + "_" + String.format("%02d", this.updateRevision);
>> +            + "_" + String.format("%03d", this.updateRevision);
>>             if (this.build != null) {
>>               string += "-" + this.build;
>>
>>
>>
>>
>
Loading...