incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r800570 - in /incubator/kato/trunk/org.apache.kato/kato.hprof.api/src: main/java/org/apache/kato/hprof/image/ main/java/org/apache/kato/hprof/java/ test/java/test/apache/kato/hprof/image/
Date Mon, 03 Aug 2009 21:20:34 GMT
Author: spoole
Date: Mon Aug  3 21:20:34 2009
New Revision: 800570

URL: http://svn.apache.org/viewvc?rev=800570&view=rev
Log:
updated hprof API to support newly renamed API version methods

Modified:
    incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java
    incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
    incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/TestImageFactory.java

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java?rev=800570&r1=800569&r2=800570&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java
Mon Aug  3 21:20:34 2009
@@ -26,19 +26,19 @@
 
 	private static String[] suffixes=new String[]{"hprof"};
 	@Override
-	public int getKatoMajorVersion() {
+	public int getMajorVersion() {
 		
-		return 1;
+		return 0;
 	}
 
 	@Override
-	public int getKatoMinorVersion() {
+	public int getMinorVersion() {
 		
-		return 3;
+		return 1;
 	}
 
 	@Override
-	public int getKatoModificationLevel() {
+	public int getModificationLevel() {
 		
 		return 0;
 	}

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java?rev=800570&r1=800569&r2=800570&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
Mon Aug  3 21:20:34 2009
@@ -11,6 +11,7 @@
 import javax.tools.diagnostics.runtime.java.JavaLocation;
 import javax.tools.diagnostics.runtime.java.JavaMethod;
 import javax.tools.diagnostics.runtime.java.JavaStackFrame;
+import javax.tools.diagnostics.runtime.java.JavaVariable;
 
 import org.apache.kato.hprof.IJavaStackFrame;
 import org.apache.kato.hprof.image.ImagePointerImpl;
@@ -212,8 +213,8 @@
 		}
 
 		@Override
-		public List getVariables() throws DataUnavailable {
-			throw new DataUnavailable();
+		public List<JavaVariable> getVariables()  {
+			return new LinkedList<JavaVariable>();
 		}
 	}
 

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/TestImageFactory.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/TestImageFactory.java?rev=800570&r1=800569&r2=800570&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/TestImageFactory.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/TestImageFactory.java
Mon Aug  3 21:20:34 2009
@@ -33,18 +33,18 @@
 	public void testMajorVersion() {
 		
 		ImageFactory factory=new ImageFactoryImpl();
-		assertEquals("major version mismatch",1,factory.getKatoMajorVersion());
+		assertEquals("major version mismatch",0,factory.getMajorVersion());
 	}
 	public void testMinorVersion() {
 		
 		ImageFactory factory=new ImageFactoryImpl();
-		assertEquals("minor version mismatch",3,factory.getKatoMinorVersion());
+		assertEquals("minor version mismatch",1,factory.getMinorVersion());
 	}
 	
 	public void testModVersion() {
 		
 		ImageFactory factory=new ImageFactoryImpl();
-		assertEquals("modification version mismatch",0,factory.getKatoModificationLevel());
+		assertEquals("modification version mismatch",0,factory.getModificationLevel());
 	}
 	
 	public void testGetImageFromNull1() throws IOException {



Mime
View raw message