Fixes #2515: Incorrectly version comparison
Incorrectly prefer the channel over revision to determine the newest
version.
(cherry picked from commit 3600c72
)
This commit is contained in:
parent
1f22bc4205
commit
f296445521
|
@ -42,14 +42,14 @@ public final class DefaultVersion extends BaseVersion
|
|||
@Override
|
||||
public boolean isNewerAs( final Version maybeOlder )
|
||||
{
|
||||
if( this.revision() > maybeOlder.revision() )
|
||||
if( this.revision() < maybeOlder.revision() )
|
||||
{
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
if( this.channel().compareTo( maybeOlder.channel() ) > 0 )
|
||||
if( this.channel().compareTo( maybeOlder.channel() ) < 0 )
|
||||
{
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.build() > maybeOlder.build();
|
||||
|
|
Loading…
Reference in a new issue