krysalis-version/src/java/org/krysalis/version/internal VersionIdentifier.java,1.4,1.5

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/internal
In directory sc8-pr-cvs1:/tmp/cvs-serv22898/src/java/org/krysalis/version/internal

Modified Files:
	VersionIdentifier.java 
Log Message:
1) Wrote version-available & tested it, which helped me w/ some debugging..
2) Moved the jdk14 dependency out

Index: VersionIdentifier.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/internal/VersionIdentifier.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** VersionIdentifier.java	5 Feb 2003 21:54:55 -0000	1.4
--- VersionIdentifier.java	10 Feb 2003 16:27:43 -0000	1.5
***************
*** 76,79 ****
--- 76,80 ----
      public VersionIdentifier(String key) {
          m_key = key;
+         m_typeURI = PACKAGE_URI;
      }
  
***************
*** 153,164 ****
          int comparison = -1;
  
! 		if (other instanceof VersionMetadata) {
! 			VersionMetadata otherVersionMetadata = (VersionMetadata) other;
  
! 			comparison =
! 				(otherVersionMetadata.getIdentifier().compareTo(this));
! 		}
! 		else
!         if (other instanceof VersionIdentifier) {
              VersionIdentifier otherVersionId = (VersionIdentifier) other;
  
--- 154,166 ----
          int comparison = -1;
  
!         if (null == other) {
!             comparison = -1;
!         }
!         else if (other instanceof VersionMetadata) {
!             VersionMetadata otherVersionMetadata = (VersionMetadata) other;
  
!             comparison = (otherVersionMetadata.getIdentifier().compareTo(this));
!         }
!         else if (other instanceof VersionIdentifier) {
              VersionIdentifier otherVersionId = (VersionIdentifier) other;
  




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
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.