incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r779953 - in /incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof: image/ java/
Date Fri, 29 May 2009 13:11:01 GMT
Author: spoole
Date: Fri May 29 13:11:00 2009
New Revision: 779953

URL: http://svn.apache.org/viewvc?rev=779953&view=rev
Log:
small updates to hprof api in experimental branch to bring in line with trunk

Modified:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectArrayImpl.java
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectInstanceImpl.java
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java?rev=779953&r1=779952&r2=779953&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/image/ImageFactoryImpl.java
Fri May 29 13:11:00 2009
@@ -52,6 +52,7 @@
 	public Image getImage(File imageFile, File metadata) throws IOException {
 		
 		if(imageFile==null) throw new IllegalArgumentException("image file is null");
+		if(imageFile.exists()==false) throw new IllegalArgumentException("image file does not exist");
 		HProfFile hprofFile=HProfFactory.createReader(imageFile);
 		
 		hprofFile.open();

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectArrayImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectArrayImpl.java?rev=779953&r1=779952&r2=779953&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectArrayImpl.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectArrayImpl.java
Fri May 29 13:11:00 2009
@@ -161,7 +161,7 @@
 	 * Return object ID of record on disk.
 	 * @return
 	 */
-	long getObjectID() {
+	public long getObjectID() {
 		return record.getID();
 	}
 }

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectInstanceImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectInstanceImpl.java?rev=779953&r1=779952&r2=779953&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectInstanceImpl.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaObjectInstanceImpl.java
Fri May 29 13:11:00 2009
@@ -214,7 +214,7 @@
 		return false;
 	}
 	
-	long getObjectID() {
+	public long getObjectID() {
 		return record.getID();
 	}
 	

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java?rev=779953&r1=779952&r2=779953&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
Fri May 29 13:11:00 2009
@@ -221,4 +221,11 @@
 			DataUnavailable, IndexOutOfBoundsException {
 		throw new DataUnavailable();
 	}
+
+	@Override
+	public List getVariables() {
+		
+		return new LinkedList();
+	}
+	
 }



Mime
View raw message