incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r823485 - in /incubator/kato/trunk/org.apache.kato/kato.hprof.api/src: main/java/org/apache/kato/hprof/image/ImageImpl.java main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java test/java/test/apache/kato/hprof/java/TestJavaRuntime.java
Date Fri, 09 Oct 2009 09:47:45 GMT
Author: spoole
Date: Fri Oct  9 09:47:45 2009
New Revision: 823485

URL: http://svn.apache.org/viewvc?rev=823485&view=rev
Log:
updated API and implementations to all  Images and Javaruntimes to return their File data
source

Modified:
    incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageImpl.java
    incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java
    incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageImpl.java?rev=823485&r1=823484&r2=823485&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageImpl.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageImpl.java
Fri Oct  9 09:47:45 2009
@@ -13,6 +13,7 @@
  ******************************************************************************/
 package org.apache.kato.hprof.image;
 
+import java.io.File;
 import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.List;
@@ -90,5 +91,9 @@
 	public String getSystemType() throws DataUnavailable, CorruptDataException {
 		throw new DataUnavailable();
 	}
+	@Override
+	public File getSource() {
+		return file.getSource();
+	}
 
 }

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java?rev=823485&r1=823484&r2=823485&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java
Fri Oct  9 09:47:45 2009
@@ -13,6 +13,7 @@
  ******************************************************************************/
 package org.apache.kato.hprof.java;
 
+import java.io.File;
 import java.util.Collection;
 import java.util.Iterator;
 import java.util.LinkedList;
@@ -180,4 +181,10 @@
 	JavaHeap getHeap() {
 		return heap;
 	}
+
+	@Override
+	public File getSource() {
+		
+		return view.getSource();
+	}
 }

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java?rev=823485&r1=823484&r2=823485&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java
Fri Oct  9 09:47:45 2009
@@ -13,6 +13,7 @@
  ******************************************************************************/
 package test.apache.kato.hprof.java;
 
+import java.io.File;
 import java.io.IOException;
 import java.util.Iterator;
 import java.util.List;
@@ -179,5 +180,11 @@
 
 			return null;
 		}
+
+		@Override
+		public File getSource() {
+			// TODO Auto-generated method stub
+			return null;
+		}
 	}
 }



Mime
View raw message