Update of /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv18903/src/java/org/krysalis/version/impl
Modified Files:
KrysalisVersion.java
Log Message:
Random
Index: KrysalisVersion.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/impl/KrysalisVersion.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** KrysalisVersion.java 10 Mar 2003 20:44:10 -0000 1.25
--- KrysalisVersion.java 10 Mar 2003 23:34:30 -0000 1.26
***************
*** 84,88 ****
private final VersionData m_data;
! public static KrysalisVersion fromVersion(Version version) throws VersionException {
if (version instanceof KrysalisVersion)
return (KrysalisVersion) version;
--- 84,89 ----
private final VersionData m_data;
! public static KrysalisVersion fromVersion(Version version)
! throws VersionException {
if (version instanceof KrysalisVersion)
return (KrysalisVersion) version;
***************
*** 110,114 ****
public KrysalisVersion(CompoundVersion version) throws VersionException {
m_identifier = new VersionIdentifier(version.getId());
! m_specification = VersionSpecificationFactory.createDefaultVersionSpecification();
m_data =
new VersionData(
--- 111,116 ----
public KrysalisVersion(CompoundVersion version) throws VersionException {
m_identifier = new VersionIdentifier(version.getId());
! m_specification =
! VersionSpecificationFactory.createDefaultVersionSpecification();
m_data =
new VersionData(
***************
*** 245,249 ****
* @param other
*/
! public KrysalisVersion(VersionIdentifier id, Map properties) throws VersionException {
super();
--- 247,252 ----
* @param other
*/
! public KrysalisVersion(VersionIdentifier id, Map properties)
! throws VersionException {
super();
***************
*** 254,258 ****
}
-
/**
* Constructor for Version.
--- 257,260 ----
***************
*** 598,604 ****
}
! public boolean isCompatible(Version version) {
! //:TODO: (1) default values compare (2) allow override
! return false;
}
--- 600,630 ----
}
! public boolean isCompatible(Version other) {
! //:TODO: Understand/Test this code (stolen/copied from Ruper)
!
! boolean back = true;
!
! if (other instanceof KrysalisVersion) {
! KrysalisVersion otherKrysalisVersion = (KrysalisVersion) other;
!
! back =
! back
! && ((otherKrysalisVersion.getMajor() == 0)
! || (otherKrysalisVersion.getMajor() == getMajor()));
!
! back =
! back
! && ((getReleaseLevel()
! .compareTo(otherKrysalisVersion.getReleaseLevel())
! >= 0)
! || ((!ReleaseLevel.RELEASE.equals(getReleaseLevel()))
! && (!ReleaseLevel
! .RELEASE
! .equals(
! otherKrysalisVersion.getReleaseLevel()))));
! }
!
! return back;
!
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.