incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r779972 - /incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/RandomAccesDataProvider.java
Date Fri, 29 May 2009 13:43:01 GMT
Author: spoole
Date: Fri May 29 13:43:01 2009
New Revision: 779972

URL: http://svn.apache.org/viewvc?rev=779972&view=rev
Log:
made experimental hprof plugin build use pde builder

Modified:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/RandomAccesDataProvider.java

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/RandomAccesDataProvider.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/RandomAccesDataProvider.java?rev=779972&r1=779971&r2=779972&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/RandomAccesDataProvider.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/RandomAccesDataProvider.java
Fri May 29 13:43:01 2009
@@ -31,6 +31,8 @@
 	private boolean moved=false;
 	
 	public RandomAccesDataProvider(File reader) throws IOException {
+		if(reader==null) throw new IllegalArgumentException("reader file is null");
+		if(reader.exists()==false) throw new IllegalArgumentException("reader file ["+reader.getAbsolutePath()+
" ] does not exist");
 		RandomAccessFile r=new RandomAccessFile(reader, "r");
 		raf=new FileImageInputStream(r);
 	}



Mime
View raw message