incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r883384 [12/47] - in /incubator/kato/trunk/org.apache.kato: ./ kato.anttasks/src/main/java/org/apache/kato/anttasks/ kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/ kato.anttasks/src/main/java/org/apache/kato/anttasks/tck/...
Date Mon, 23 Nov 2009 15:54:15 GMT
Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaPrimitiveClassImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaPrimitiveClassImpl.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaPrimitiveClassImpl.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaPrimitiveClassImpl.java Mon Nov 23 15:53:48 2009
@@ -1,113 +1,113 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-import java.util.List;
-import java.util.Vector;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.ImagePointer;
-import javax.tools.diagnostics.runtime.java.JavaClass;
-import javax.tools.diagnostics.runtime.java.JavaClassLoader;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-
-import org.apache.kato.hprof.image.ImagePointerImpl;
-
-/**
- * There aren't any primitive types in hprof dumps.
- * We have to fake them.
- * 
- *
- */
-public class JavaPrimitiveClassImpl implements JavaClass {
-	private String name;
-	private ImagePointer id;
-	private JavaClassLoader loader;
-	
-	public JavaPrimitiveClassImpl(String name, ImagePointer id, JavaClassLoader loader) {
-		this.name = name;
-		this.id = id;
-		this.loader = loader;
-	}
-	
-	@Override
-	public JavaClassLoader getClassLoader() throws CorruptDataException {
-		return loader;
-	}
-
-	@Override
-	public JavaClass getComponentType() throws CorruptDataException {
-		throw new IllegalArgumentException("Primitive class is not an array. There is no component type");
-	}
-
-	@Override
-	public List getConstantPoolReferences() {
-		return new Vector(0);
-	}
-
-	@Override
-	public List getDeclaredFields() {
-		return new Vector(0);
-	}
-
-	@Override
-	public List getDeclaredMethods() {
-		return new Vector(0);
-	}
-
-	
-	@Override
-	public ImagePointer getID() {
-		// Use basic type id as the id.
-		return id;
-	}
-
-	@Override
-	public List getInterfaces() {
-		return new Vector(0);
-	}
-
-	@Override
-	public int getModifiers() throws CorruptDataException {
-		return 0;
-	}
-
-	@Override
-	public String getName() throws CorruptDataException {
-		return name;
-	}
-
-	/**
-	 * Primitive type have no superclass - not even java/lang/Object.
-	 */
-	@Override
-	public JavaObject getObject() throws CorruptDataException {
-		return null;
-	}
-
-	@Override
-	public List getReferences() {
-		return new Vector(0);
-	}
-
-	@Override
-	public JavaClass getSuperclass() throws CorruptDataException {
-		return null;		
-	}
-
-	@Override
-	public boolean isArray() throws CorruptDataException {
-		return false;
-	}
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+import java.util.List;
+import java.util.Vector;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.ImagePointer;
+import javax.tools.diagnostics.runtime.java.JavaClass;
+import javax.tools.diagnostics.runtime.java.JavaClassLoader;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+
+import org.apache.kato.hprof.image.ImagePointerImpl;
+
+/**
+ * There aren't any primitive types in hprof dumps.
+ * We have to fake them.
+ * 
+ *
+ */
+public class JavaPrimitiveClassImpl implements JavaClass {
+	private String name;
+	private ImagePointer id;
+	private JavaClassLoader loader;
+	
+	public JavaPrimitiveClassImpl(String name, ImagePointer id, JavaClassLoader loader) {
+		this.name = name;
+		this.id = id;
+		this.loader = loader;
+	}
+	
+	@Override
+	public JavaClassLoader getClassLoader() throws CorruptDataException {
+		return loader;
+	}
+
+	@Override
+	public JavaClass getComponentType() throws CorruptDataException {
+		throw new IllegalArgumentException("Primitive class is not an array. There is no component type");
+	}
+
+	@Override
+	public List getConstantPoolReferences() {
+		return new Vector(0);
+	}
+
+	@Override
+	public List getDeclaredFields() {
+		return new Vector(0);
+	}
+
+	@Override
+	public List getDeclaredMethods() {
+		return new Vector(0);
+	}
+
+	
+	@Override
+	public ImagePointer getID() {
+		// Use basic type id as the id.
+		return id;
+	}
+
+	@Override
+	public List getInterfaces() {
+		return new Vector(0);
+	}
+
+	@Override
+	public int getModifiers() throws CorruptDataException {
+		return 0;
+	}
+
+	@Override
+	public String getName() throws CorruptDataException {
+		return name;
+	}
+
+	/**
+	 * Primitive type have no superclass - not even java/lang/Object.
+	 */
+	@Override
+	public JavaObject getObject() throws CorruptDataException {
+		return null;
+	}
+
+	@Override
+	public List getReferences() {
+		return new Vector(0);
+	}
+
+	@Override
+	public JavaClass getSuperclass() throws CorruptDataException {
+		return null;		
+	}
+
+	@Override
+	public boolean isArray() throws CorruptDataException {
+		return false;
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaPrimitiveClassImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

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=883384&r1=883383&r2=883384&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 Nov 23 15:53:48 2009
@@ -1,246 +1,246 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.ImagePointer;
-import javax.tools.diagnostics.image.DiagnosticException;
-import javax.tools.diagnostics.runtime.java.JavaClass;
-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;
-
-/**
- * 	A stack frame, wraps a {@link IJavaHeapInternal}.
- *
- */
-public class JavaStackFrameImpl implements JavaStackFrame {
-	private IJavaStackFrame frame;
-	private IJavaHeapInternal heap;
-	
-	public JavaStackFrameImpl(IJavaHeapInternal heap, IJavaStackFrame frame) {
-		this.frame = frame;
-		this.heap = heap;
-	}
-	
-	/**
-	 * There is no stored frame bas pointer.
-	 * Returns frame ID instead.
-	 * 
-	 * FIXME Would like a DataUnavailable exception here.
-	 */
-	@Override
-	public ImagePointer getBasePointer() throws CorruptDataException {		
-		return heap.getImagePointer(frame.getID());
-	}
-
-	@Override
-	public List getHeapRoots() {
-		// TODO Need implementation here.
-		return null;
-	}
-
-	private JavaLocation location = new JavaLocationImpl();
-	@Override
-	public JavaLocation getLocation() throws CorruptDataException {
-		return location;
-	}
-
-	/**
-	 * Implements a JavaLocation
-	 * There is a 1:1 relationship with JavaStackFrames. 
-	 *
-	 */
-	private class JavaLocationImpl implements JavaLocation {
-		
-		/**
-		 * For testing equality.
-		 * 
-		 * @return IJavaStackFrame of this location
-		 */
-		IJavaStackFrame getFrame() {
-			return frame;			
-		}
-		
-		
-		@Override
-		public ImagePointer getAddress() throws CorruptDataException {
-			return heap.getImagePointer(frame.getID());
-		}
-
-		
-		/**
-		 * Returns 1 if the method is compiled, otherwise returns 0
-		 */
-		@Override
-		public int getCompilationLevel() throws CorruptDataException {
-			int level = frame.getLineNumber();
-		
-			return level == -2 ? 1 : 0;			
-		}
-
-		@Override
-		public String getFilename() throws DataUnavailable,
-				CorruptDataException {			
-			return frame.getSourceFileName();
-		}
-
-		@Override
-		public int getLineNumber() throws DataUnavailable, CorruptDataException {
-			int level = frame.getLineNumber();
-			
-			if (level < 0) {
-				throw new DataUnavailable("No line number information.");
-			}
-			return level;
-		}
-
-		private JavaMethodImpl method = new JavaMethodImpl();
-		
-		@Override
-		public JavaMethod getMethod() throws CorruptDataException {
-			return method;
-		}
-		
-		public boolean equals(Object obj) {
-			if (obj == null) return false;
-			
-			if (! (obj instanceof JavaLocationImpl)) {
-				return false;
-			}
-			
-			JavaLocationImpl otherLocation = (JavaLocationImpl) obj;
-			
-			return otherLocation.getFrame().equals(frame);
-		}
-		
-		// TODO
-		public String toString() {
-			return "a string";
-		}
-		
-	}
-
-	/**
-	 *  A dummy method. 
-	 *
-	 */
-	private class JavaMethodImpl implements JavaMethod {
-
-		/**
-		 * HProf has no bytecode sections.
-		 * 
-		 * @return empty Iterator
-		 */
-		@Override
-		public List getBytecodeSections() {			
-			return new LinkedList();
-		}
-
-		/**
-		 * HProf has no compiled code sections.
-		 * @return empty Iterator
-		 */
-		@Override
-		public List getCompiledSections() {
-			return new LinkedList();
-		}
-
-		@Override
-		public JavaClass getDeclaringClass() throws CorruptDataException,
-				DataUnavailable {			
-			return heap.getJavaClassByID(frame.getMethodClass().getClassObjectID());
-		}
-
-		/**
-		 * HProf doesn't store modifiers. 
-		 * A method will never be reported as static.
-		 * 
-		 * @return 0
-		 */
-		@Override		
-		public int getModifiers() throws CorruptDataException {
-			return 0;
-		}
-
-		@Override
-		public String getName() throws CorruptDataException {
-			return frame.getMethodName();
-		}
-
-		@Override
-		public String getSignature() throws CorruptDataException {
-			return frame.getMethodSignature();
-		}
-		
-		public boolean equals(Object obj) {
-			if (obj == null) return false;
-			
-			if (! (obj instanceof JavaMethodImpl)) {
-				return false;
-			}
-			
-			JavaMethodImpl otherMethod = (JavaMethodImpl) obj;
-			
-			try {
-				if (otherMethod.getDeclaringClass().equals(getDeclaringClass()) &&
-						otherMethod.getName().equals(getName()) &&
-						otherMethod.getSignature().equals(getSignature())) {
-					return true;
-				}
-			} catch (CorruptDataException e) {
-			} catch (DataUnavailable e) {
-			}
-			
-			return false;
-		}
-		
-		/**
-		 * @return String in format "classname.methodname(signature)";
-		 */
-		public String toString() {
-			try {
-				return getDeclaringClass().getName()+"."+getName()+getSignature();
-			} catch (DiagnosticException e) {				
-				return "Exception on JavaMethodImpl.toString()+"+ e.getMessage();
-			}  
-		}
-
-		@Override
-		public List<JavaVariable> getVariables()  {
-			return new LinkedList<JavaVariable>();
-		}
-	}
-
-	@Override
-	public Object getVariable(int slot) throws CorruptDataException,
-			DataUnavailable, IndexOutOfBoundsException {
-		throw new DataUnavailable();
-	}
-
-	@Override
-	public List getVariables() {
-		
-		return new LinkedList();
-	}
-	
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.ImagePointer;
+import javax.tools.diagnostics.image.DiagnosticException;
+import javax.tools.diagnostics.runtime.java.JavaClass;
+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;
+
+/**
+ * 	A stack frame, wraps a {@link IJavaHeapInternal}.
+ *
+ */
+public class JavaStackFrameImpl implements JavaStackFrame {
+	private IJavaStackFrame frame;
+	private IJavaHeapInternal heap;
+	
+	public JavaStackFrameImpl(IJavaHeapInternal heap, IJavaStackFrame frame) {
+		this.frame = frame;
+		this.heap = heap;
+	}
+	
+	/**
+	 * There is no stored frame bas pointer.
+	 * Returns frame ID instead.
+	 * 
+	 * FIXME Would like a DataUnavailable exception here.
+	 */
+	@Override
+	public ImagePointer getBasePointer() throws CorruptDataException {		
+		return heap.getImagePointer(frame.getID());
+	}
+
+	@Override
+	public List getHeapRoots() {
+		// TODO Need implementation here.
+		return null;
+	}
+
+	private JavaLocation location = new JavaLocationImpl();
+	@Override
+	public JavaLocation getLocation() throws CorruptDataException {
+		return location;
+	}
+
+	/**
+	 * Implements a JavaLocation
+	 * There is a 1:1 relationship with JavaStackFrames. 
+	 *
+	 */
+	private class JavaLocationImpl implements JavaLocation {
+		
+		/**
+		 * For testing equality.
+		 * 
+		 * @return IJavaStackFrame of this location
+		 */
+		IJavaStackFrame getFrame() {
+			return frame;			
+		}
+		
+		
+		@Override
+		public ImagePointer getAddress() throws CorruptDataException {
+			return heap.getImagePointer(frame.getID());
+		}
+
+		
+		/**
+		 * Returns 1 if the method is compiled, otherwise returns 0
+		 */
+		@Override
+		public int getCompilationLevel() throws CorruptDataException {
+			int level = frame.getLineNumber();
+		
+			return level == -2 ? 1 : 0;			
+		}
+
+		@Override
+		public String getFilename() throws DataUnavailable,
+				CorruptDataException {			
+			return frame.getSourceFileName();
+		}
+
+		@Override
+		public int getLineNumber() throws DataUnavailable, CorruptDataException {
+			int level = frame.getLineNumber();
+			
+			if (level < 0) {
+				throw new DataUnavailable("No line number information.");
+			}
+			return level;
+		}
+
+		private JavaMethodImpl method = new JavaMethodImpl();
+		
+		@Override
+		public JavaMethod getMethod() throws CorruptDataException {
+			return method;
+		}
+		
+		public boolean equals(Object obj) {
+			if (obj == null) return false;
+			
+			if (! (obj instanceof JavaLocationImpl)) {
+				return false;
+			}
+			
+			JavaLocationImpl otherLocation = (JavaLocationImpl) obj;
+			
+			return otherLocation.getFrame().equals(frame);
+		}
+		
+		// TODO
+		public String toString() {
+			return "a string";
+		}
+		
+	}
+
+	/**
+	 *  A dummy method. 
+	 *
+	 */
+	private class JavaMethodImpl implements JavaMethod {
+
+		/**
+		 * HProf has no bytecode sections.
+		 * 
+		 * @return empty Iterator
+		 */
+		@Override
+		public List getBytecodeSections() {			
+			return new LinkedList();
+		}
+
+		/**
+		 * HProf has no compiled code sections.
+		 * @return empty Iterator
+		 */
+		@Override
+		public List getCompiledSections() {
+			return new LinkedList();
+		}
+
+		@Override
+		public JavaClass getDeclaringClass() throws CorruptDataException,
+				DataUnavailable {			
+			return heap.getJavaClassByID(frame.getMethodClass().getClassObjectID());
+		}
+
+		/**
+		 * HProf doesn't store modifiers. 
+		 * A method will never be reported as static.
+		 * 
+		 * @return 0
+		 */
+		@Override		
+		public int getModifiers() throws CorruptDataException {
+			return 0;
+		}
+
+		@Override
+		public String getName() throws CorruptDataException {
+			return frame.getMethodName();
+		}
+
+		@Override
+		public String getSignature() throws CorruptDataException {
+			return frame.getMethodSignature();
+		}
+		
+		public boolean equals(Object obj) {
+			if (obj == null) return false;
+			
+			if (! (obj instanceof JavaMethodImpl)) {
+				return false;
+			}
+			
+			JavaMethodImpl otherMethod = (JavaMethodImpl) obj;
+			
+			try {
+				if (otherMethod.getDeclaringClass().equals(getDeclaringClass()) &&
+						otherMethod.getName().equals(getName()) &&
+						otherMethod.getSignature().equals(getSignature())) {
+					return true;
+				}
+			} catch (CorruptDataException e) {
+			} catch (DataUnavailable e) {
+			}
+			
+			return false;
+		}
+		
+		/**
+		 * @return String in format "classname.methodname(signature)";
+		 */
+		public String toString() {
+			try {
+				return getDeclaringClass().getName()+"."+getName()+getSignature();
+			} catch (DiagnosticException e) {				
+				return "Exception on JavaMethodImpl.toString()+"+ e.getMessage();
+			}  
+		}
+
+		@Override
+		public List<JavaVariable> getVariables()  {
+			return new LinkedList<JavaVariable>();
+		}
+	}
+
+	@Override
+	public Object getVariable(int slot) throws CorruptDataException,
+			DataUnavailable, IndexOutOfBoundsException {
+		throw new DataUnavailable();
+	}
+
+	@Override
+	public List getVariables() {
+		
+		return new LinkedList();
+	}
+	
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaSyntheticPrimitiveArrayImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaSyntheticPrimitiveArrayImpl.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaSyntheticPrimitiveArrayImpl.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaSyntheticPrimitiveArrayImpl.java Mon Nov 23 15:53:48 2009
@@ -1,94 +1,94 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.ImagePointer;
-import javax.tools.diagnostics.runtime.java.JavaClass;
-import javax.tools.diagnostics.runtime.java.JavaClassLoader;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-
-
-/**
- * A JavaClass implementation for when there are primitive arrays, but no classes
- * to represent them. 
- *
- */
-public class JavaSyntheticPrimitiveArrayImpl implements JavaClass {
-	private JavaPrimitiveClassImpl componentType;
-	private String name;
-	private JavaClassLoaderImpl loader;
-	
-	public JavaSyntheticPrimitiveArrayImpl(JavaPrimitiveClassImpl javaPrimitiveClassImpl, String name, JavaClassLoaderImpl loader) {
-		this.componentType = javaPrimitiveClassImpl;
-		this.name = name;
-		this.loader = loader; 
-	}
-
-	public JavaClassLoader getClassLoader() throws CorruptDataException {
-		return loader;
-	}
-
-	public JavaClass getComponentType() throws CorruptDataException {
-		return componentType;
-	}
-
-	public List getConstantPoolReferences() {
-		return new LinkedList();
-	}
-
-	public List getDeclaredFields() {
-		return new LinkedList();
-	}
-
-	public List getDeclaredMethods() {
-		return new LinkedList();
-	}
-
-	public ImagePointer getID() {
-		return componentType.getID();
-	}
-
-	public List getInterfaces() {
-		return new LinkedList();
-	}
-
-	public int getModifiers() throws CorruptDataException {
-		return 0;
-	}
-
-	public String getName() throws CorruptDataException {
-		return name;
-	}
-
-	public JavaObject getObject() throws CorruptDataException {
-		return null;
-	}
-
-	public List getReferences() {
-		return new LinkedList();
-	}
-
-	public JavaClassImpl getSuperclass() throws CorruptDataException {
-		return null;
-	}
-
-	public boolean isArray() throws CorruptDataException {
-		return true;
-	}
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.ImagePointer;
+import javax.tools.diagnostics.runtime.java.JavaClass;
+import javax.tools.diagnostics.runtime.java.JavaClassLoader;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+
+
+/**
+ * A JavaClass implementation for when there are primitive arrays, but no classes
+ * to represent them. 
+ *
+ */
+public class JavaSyntheticPrimitiveArrayImpl implements JavaClass {
+	private JavaPrimitiveClassImpl componentType;
+	private String name;
+	private JavaClassLoaderImpl loader;
+	
+	public JavaSyntheticPrimitiveArrayImpl(JavaPrimitiveClassImpl javaPrimitiveClassImpl, String name, JavaClassLoaderImpl loader) {
+		this.componentType = javaPrimitiveClassImpl;
+		this.name = name;
+		this.loader = loader; 
+	}
+
+	public JavaClassLoader getClassLoader() throws CorruptDataException {
+		return loader;
+	}
+
+	public JavaClass getComponentType() throws CorruptDataException {
+		return componentType;
+	}
+
+	public List getConstantPoolReferences() {
+		return new LinkedList();
+	}
+
+	public List getDeclaredFields() {
+		return new LinkedList();
+	}
+
+	public List getDeclaredMethods() {
+		return new LinkedList();
+	}
+
+	public ImagePointer getID() {
+		return componentType.getID();
+	}
+
+	public List getInterfaces() {
+		return new LinkedList();
+	}
+
+	public int getModifiers() throws CorruptDataException {
+		return 0;
+	}
+
+	public String getName() throws CorruptDataException {
+		return name;
+	}
+
+	public JavaObject getObject() throws CorruptDataException {
+		return null;
+	}
+
+	public List getReferences() {
+		return new LinkedList();
+	}
+
+	public JavaClassImpl getSuperclass() throws CorruptDataException {
+		return null;
+	}
+
+	public boolean isArray() throws CorruptDataException {
+		return true;
+	}
+
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaSyntheticPrimitiveArrayImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaThreadImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaThreadImpl.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaThreadImpl.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaThreadImpl.java Mon Nov 23 15:53:48 2009
@@ -1,129 +1,129 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Vector;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.ImagePointer;
-import javax.tools.diagnostics.image.ImageThread;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-import javax.tools.diagnostics.runtime.java.JavaThread;
-
-import org.apache.kato.hprof.IJavaStack;
-import org.apache.kato.hprof.IJavaStackFrame;
-import org.apache.kato.hprof.IJavaThread;
-
-/**
- * Implements a JavaThread by wrapping a IJavaThread from HprofView.
- *
- */
-public class JavaThreadImpl implements JavaThread {
-	private IJavaHeapInternal heap;
-	private IJavaThread thread;
-	
-	public JavaThreadImpl(IJavaHeapInternal heap, IJavaThread thread) {
-		this.heap = heap;
-		this.thread = thread;
-	}
-	
-	/**
-	 * There are no image threads in hprof files.
-	 * 
-	 * @throws DataUnavailable always - there are no ImageThreads
-	 */
-	@Override
-	public ImageThread getImageThread() throws CorruptDataException,
-			DataUnavailable {
-		throw new DataUnavailable("ImageThreads not present in Hprof file.");
-	}
-
-	
-	/**
-	 * There are no JNIEnvs in Hprof.
-	 * There is no DataUnavailable exception, so we wrap up the thread serial# in an
-	 * image pointer.
-	 * 
-	 * @return ImagePointer of thread serial number
-	 */
-	@Override
-	public ImagePointer getJNIEnv() throws CorruptDataException {
-		return heap.getImagePointer(thread.getThreadSerialNumber());
-	}
-
-	@Override
-	public String getName() throws CorruptDataException {
-		return thread.getThreadName();
-	}
-
-	@Override
-	public JavaObject getObject() throws CorruptDataException {
-		return heap.getObjectByID(thread.getThreadObjectID());
-	}
-
-	/**
-	 * Priority not stored in Hprof.
-	 * 
-	 * @return 0
-	 */
-	@Override
-	public int getPriority() throws CorruptDataException {		
-		return 0;
-	}
-
-	/**
-	 * 
-	 * @return Iterator over all stack frames
-	 */
-	private Vector<JavaStackFrameImpl> frames;
-	@Override
-	public List getStackFrames() {
-		if(frames == null) {
-			IJavaStack stack =thread.getStack();
-		 	IJavaStackFrame[] stackFrames = stack.getStack();
-		 	frames = new Vector<JavaStackFrameImpl>(stackFrames.length);
-
-		 	for (IJavaStackFrame frame : stackFrames) {
-		 		frames.add(new JavaStackFrameImpl(heap, frame));
-		 	}
-		}
-		
-		return frames;
-	}
-
-	/**
-	 * Stack sections are not recorded in hprof files.
-	 * 
-	 * @return empty iterator.
-	 */
-	@Override
-	public List getStackSections() {
-		return new LinkedList();
-	}
-
-	/**
-	 * State isn't recorded in Hprof. Only live threads
-	 * are reported, STATE_ALIVE can therefore be stated.
-	 * 
-	 * @return STATE_ALIVE
-	 */
-	@Override
-	public int getState() throws CorruptDataException {
-		return STATE_ALIVE;
-	}
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Vector;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.ImagePointer;
+import javax.tools.diagnostics.image.ImageThread;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+import javax.tools.diagnostics.runtime.java.JavaThread;
+
+import org.apache.kato.hprof.IJavaStack;
+import org.apache.kato.hprof.IJavaStackFrame;
+import org.apache.kato.hprof.IJavaThread;
+
+/**
+ * Implements a JavaThread by wrapping a IJavaThread from HprofView.
+ *
+ */
+public class JavaThreadImpl implements JavaThread {
+	private IJavaHeapInternal heap;
+	private IJavaThread thread;
+	
+	public JavaThreadImpl(IJavaHeapInternal heap, IJavaThread thread) {
+		this.heap = heap;
+		this.thread = thread;
+	}
+	
+	/**
+	 * There are no image threads in hprof files.
+	 * 
+	 * @throws DataUnavailable always - there are no ImageThreads
+	 */
+	@Override
+	public ImageThread getImageThread() throws CorruptDataException,
+			DataUnavailable {
+		throw new DataUnavailable("ImageThreads not present in Hprof file.");
+	}
+
+	
+	/**
+	 * There are no JNIEnvs in Hprof.
+	 * There is no DataUnavailable exception, so we wrap up the thread serial# in an
+	 * image pointer.
+	 * 
+	 * @return ImagePointer of thread serial number
+	 */
+	@Override
+	public ImagePointer getJNIEnv() throws CorruptDataException {
+		return heap.getImagePointer(thread.getThreadSerialNumber());
+	}
+
+	@Override
+	public String getName() throws CorruptDataException {
+		return thread.getThreadName();
+	}
+
+	@Override
+	public JavaObject getObject() throws CorruptDataException {
+		return heap.getObjectByID(thread.getThreadObjectID());
+	}
+
+	/**
+	 * Priority not stored in Hprof.
+	 * 
+	 * @return 0
+	 */
+	@Override
+	public int getPriority() throws CorruptDataException {		
+		return 0;
+	}
+
+	/**
+	 * 
+	 * @return Iterator over all stack frames
+	 */
+	private Vector<JavaStackFrameImpl> frames;
+	@Override
+	public List getStackFrames() {
+		if(frames == null) {
+			IJavaStack stack =thread.getStack();
+		 	IJavaStackFrame[] stackFrames = stack.getStack();
+		 	frames = new Vector<JavaStackFrameImpl>(stackFrames.length);
+
+		 	for (IJavaStackFrame frame : stackFrames) {
+		 		frames.add(new JavaStackFrameImpl(heap, frame));
+		 	}
+		}
+		
+		return frames;
+	}
+
+	/**
+	 * Stack sections are not recorded in hprof files.
+	 * 
+	 * @return empty iterator.
+	 */
+	@Override
+	public List getStackSections() {
+		return new LinkedList();
+	}
+
+	/**
+	 * State isn't recorded in Hprof. Only live threads
+	 * are reported, STATE_ALIVE can therefore be stated.
+	 * 
+	 * @return STATE_ALIVE
+	 */
+	@Override
+	public int getState() throws CorruptDataException {
+		return STATE_ALIVE;
+	}
+
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaThreadImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/GCInstanceHeapDumpRecordTest.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/GCInstanceHeapDumpRecordTest.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/GCInstanceHeapDumpRecordTest.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/GCInstanceHeapDumpRecordTest.java Mon Nov 23 15:53:48 2009
@@ -1,107 +1,107 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-import org.apache.kato.hprof.datalayer.IGCInstanceHeapDumpRecord;
-
-/**
- * Implements a IGCInstanceHeapDumpRecord, to be wrapped by a JavaObjectInstanceImpl.
- * 
- * uses setters to set values.
- * 
- * These have to make sense in context with the classes.
- *
- */
-public class GCInstanceHeapDumpRecordTest implements IGCInstanceHeapDumpRecord{
-	long[] slots;
-	
-	public void setSlots(long[] slots) {
-		this.slots = slots;
-	}
-	 
-	long id;
-	public void setID(long id) {
-		this.id = id;
-	}
-	@Override
-	public long getID() {
-		return id;
-	}
-	long classObjectID;
-	public void setClassObjectID(long id) {
-		this.classObjectID = id;
-	}
-	@Override
-	public long getClassObjectID() {
-		return classObjectID;
-	}
-	
-
-	int stackTraceNumber;
-	public void setStackTraceNumber(int num) {
-		this.stackTraceNumber = num;
-	}
-	@Override
-	public int getStackTraceNumber() {
-		return stackTraceNumber;
-	}
-	
-	@Override
-	public boolean getBooleanField(int offset) {
-		return !(slots[offset] == 0L);
-	}
-
-	@Override
-	public byte getByteField(int offset) {
-		return (byte) slots[offset];
-	}
-
-	@Override
-	public char getCharField(int offset) {
-		return (char) slots[offset];
-	}
-
-	@Override
-	public double getDoubleField(int offset) {
-		return Double.longBitsToDouble(slots[offset]);
-	}
-
-	@Override
-	public float getFloatField(int offset) {
-		return Float.intBitsToFloat((int) slots[offset]);
-	}
-
-	@Override
-	public long getIDField(int offset) {
-		return slots[offset];
-	}
-
-	@Override
-	public int getIntegerField(int offset) {
-		return (int) slots[offset];
-	}
-
-	@Override
-	public long getLongField(int offset) {
-		return slots[offset];
-	}
-
-	@Override
-	public short getShortField(int offset) {
-		return (short) slots[offset];
-	}
-
-
-	
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+import org.apache.kato.hprof.datalayer.IGCInstanceHeapDumpRecord;
+
+/**
+ * Implements a IGCInstanceHeapDumpRecord, to be wrapped by a JavaObjectInstanceImpl.
+ * 
+ * uses setters to set values.
+ * 
+ * These have to make sense in context with the classes.
+ *
+ */
+public class GCInstanceHeapDumpRecordTest implements IGCInstanceHeapDumpRecord{
+	long[] slots;
+	
+	public void setSlots(long[] slots) {
+		this.slots = slots;
+	}
+	 
+	long id;
+	public void setID(long id) {
+		this.id = id;
+	}
+	@Override
+	public long getID() {
+		return id;
+	}
+	long classObjectID;
+	public void setClassObjectID(long id) {
+		this.classObjectID = id;
+	}
+	@Override
+	public long getClassObjectID() {
+		return classObjectID;
+	}
+	
+
+	int stackTraceNumber;
+	public void setStackTraceNumber(int num) {
+		this.stackTraceNumber = num;
+	}
+	@Override
+	public int getStackTraceNumber() {
+		return stackTraceNumber;
+	}
+	
+	@Override
+	public boolean getBooleanField(int offset) {
+		return !(slots[offset] == 0L);
+	}
+
+	@Override
+	public byte getByteField(int offset) {
+		return (byte) slots[offset];
+	}
+
+	@Override
+	public char getCharField(int offset) {
+		return (char) slots[offset];
+	}
+
+	@Override
+	public double getDoubleField(int offset) {
+		return Double.longBitsToDouble(slots[offset]);
+	}
+
+	@Override
+	public float getFloatField(int offset) {
+		return Float.intBitsToFloat((int) slots[offset]);
+	}
+
+	@Override
+	public long getIDField(int offset) {
+		return slots[offset];
+	}
+
+	@Override
+	public int getIntegerField(int offset) {
+		return (int) slots[offset];
+	}
+
+	@Override
+	public long getLongField(int offset) {
+		return slots[offset];
+	}
+
+	@Override
+	public short getShortField(int offset) {
+		return (short) slots[offset];
+	}
+
+
+	
 }
\ No newline at end of file

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/GCInstanceHeapDumpRecordTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaHeapImplTest.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaHeapImplTest.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaHeapImplTest.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaHeapImplTest.java Mon Nov 23 15:53:48 2009
@@ -1,104 +1,104 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-
-import javax.tools.diagnostics.image.ImagePointer;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-
-import org.apache.kato.hprof.image.ImagePointerImpl;
-
-/**
- * A dummy implementation of IJavaHeapInternal.
- * 
- * @author monteith
- *
- */
-public class JavaHeapImplTest implements IJavaHeapInternal {
-	public HashMap<Long,JavaClassImpl> classImplIDMap = new HashMap<Long,JavaClassImpl>();
-	
-	public void putJavaClassByID(JavaClassImpl clazz, long id) {
-		classImplIDMap.put(id, clazz);
-		
-	}
-	@Override
-	public JavaClassImpl getJavaClassByID(long arrayClassObjectID) {
-		return classImplIDMap.get(arrayClassObjectID);
-	}
-
-	@Override
-	public JavaClassLoaderImpl getJavaClassLoaderByID(long classLoaderObjectID) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public Collection<JavaClassLoaderImpl> getJavaClassLoaders() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	HashMap<Long,JavaObject> objectIDMap = new HashMap<Long,JavaObject>();
-	public void setObjectByID(Long id, JavaObject obj) {
-		objectIDMap.put(id, obj);
-	}
-	@Override
-	public JavaObject getObjectByID(Long element) {
-		return objectIDMap.get(element);
-	}
-
-	@Override
-	public JavaClassImpl getPrimitiveArrayClass(short elementType) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public JavaPrimitiveClassImpl getPrimitiveClass(int l) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public String getUTF8StringByID(long fieldNameID) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public String getName() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public List getObjects() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public List getSections() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-	@Override
-	public ImagePointer getImagePointer(long address) {
-		return new ImagePointerImpl(address, null);
-	}
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+
+import javax.tools.diagnostics.image.ImagePointer;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+
+import org.apache.kato.hprof.image.ImagePointerImpl;
+
+/**
+ * A dummy implementation of IJavaHeapInternal.
+ * 
+ * @author monteith
+ *
+ */
+public class JavaHeapImplTest implements IJavaHeapInternal {
+	public HashMap<Long,JavaClassImpl> classImplIDMap = new HashMap<Long,JavaClassImpl>();
+	
+	public void putJavaClassByID(JavaClassImpl clazz, long id) {
+		classImplIDMap.put(id, clazz);
+		
+	}
+	@Override
+	public JavaClassImpl getJavaClassByID(long arrayClassObjectID) {
+		return classImplIDMap.get(arrayClassObjectID);
+	}
+
+	@Override
+	public JavaClassLoaderImpl getJavaClassLoaderByID(long classLoaderObjectID) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	@Override
+	public Collection<JavaClassLoaderImpl> getJavaClassLoaders() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	HashMap<Long,JavaObject> objectIDMap = new HashMap<Long,JavaObject>();
+	public void setObjectByID(Long id, JavaObject obj) {
+		objectIDMap.put(id, obj);
+	}
+	@Override
+	public JavaObject getObjectByID(Long element) {
+		return objectIDMap.get(element);
+	}
+
+	@Override
+	public JavaClassImpl getPrimitiveArrayClass(short elementType) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	@Override
+	public JavaPrimitiveClassImpl getPrimitiveClass(int l) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	@Override
+	public String getUTF8StringByID(long fieldNameID) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	@Override
+	public String getName() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	@Override
+	public List getObjects() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	@Override
+	public List getSections() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+	@Override
+	public ImagePointer getImagePointer(long address) {
+		return new ImagePointerImpl(address, null);
+	}
+
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaHeapImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaObjectInstanceImplTest.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaObjectInstanceImplTest.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaObjectInstanceImplTest.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaObjectInstanceImplTest.java Mon Nov 23 15:53:48 2009
@@ -1,67 +1,67 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-
-
-import junit.framework.TestCase;
-
-public class JavaObjectInstanceImplTest extends TestCase {
-	JavaObjectInstanceImpl instance;
-	IJavaHeapInternal heap;
-	GCInstanceHeapDumpRecordTest gcInstance;
-	
-	public void setUp() {
-		heap = new JavaHeapImplTest();
-		gcInstance =  new GCInstanceHeapDumpRecordTest();
-		gcInstance.setID(1);
-		instance = new JavaObjectInstanceImpl(heap, gcInstance);
-	}
-	
-	public void testGetHeap() throws Exception {
-		assertEquals("JavaHeaps don't match.", heap, instance.getHeap());
-	}
-	
-	public void testGetID() throws Exception {
-		assertEquals("ID incorrectly retrieved", gcInstance.getID(), instance.getID().getAddress());
-	}
-	
-	public void testGetObjectID() throws Exception {
-		assertEquals("ID incorrectly retrieved", gcInstance.getID(), instance.getObjectID());
-	}
-	public void testEqualsNull() throws Exception {
-		assertFalse("equals(null) should be false.",instance.equals(null));
-	}
-	
-	public void testEqualsWrongType() throws Exception {
-		assertFalse("equals(String) should be false.", instance.equals("Completely wrong type"));
-	}
-	
-	public void testEquals() throws Exception {
-		assertTrue("instance.equals(instance) should be true.", instance.equals(instance));
-	}
-	
-	public void testIsArray() throws Exception {
-		assertFalse("instance.isArray() should be false", instance.isArray());
-	}
-	
-	public void testGetArraySize() throws Exception {
-		try{
-			int size = instance.getArraySize();
-			fail("instance.getArraySize() didn't throw IllegalArgumentException - returned "+size);
-		} catch(IllegalArgumentException e) {
-			// Normal case.
-		}
-	}
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+
+
+import junit.framework.TestCase;
+
+public class JavaObjectInstanceImplTest extends TestCase {
+	JavaObjectInstanceImpl instance;
+	IJavaHeapInternal heap;
+	GCInstanceHeapDumpRecordTest gcInstance;
+	
+	public void setUp() {
+		heap = new JavaHeapImplTest();
+		gcInstance =  new GCInstanceHeapDumpRecordTest();
+		gcInstance.setID(1);
+		instance = new JavaObjectInstanceImpl(heap, gcInstance);
+	}
+	
+	public void testGetHeap() throws Exception {
+		assertEquals("JavaHeaps don't match.", heap, instance.getHeap());
+	}
+	
+	public void testGetID() throws Exception {
+		assertEquals("ID incorrectly retrieved", gcInstance.getID(), instance.getID().getAddress());
+	}
+	
+	public void testGetObjectID() throws Exception {
+		assertEquals("ID incorrectly retrieved", gcInstance.getID(), instance.getObjectID());
+	}
+	public void testEqualsNull() throws Exception {
+		assertFalse("equals(null) should be false.",instance.equals(null));
+	}
+	
+	public void testEqualsWrongType() throws Exception {
+		assertFalse("equals(String) should be false.", instance.equals("Completely wrong type"));
+	}
+	
+	public void testEquals() throws Exception {
+		assertTrue("instance.equals(instance) should be true.", instance.equals(instance));
+	}
+	
+	public void testIsArray() throws Exception {
+		assertFalse("instance.isArray() should be false", instance.isArray());
+	}
+	
+	public void testGetArraySize() throws Exception {
+		try{
+			int size = instance.getArraySize();
+			fail("instance.getArraySize() didn't throw IllegalArgumentException - returned "+size);
+		} catch(IllegalArgumentException e) {
+			// Normal case.
+		}
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaObjectInstanceImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaPrimitiveClassImplTest.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaPrimitiveClassImplTest.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaPrimitiveClassImplTest.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaPrimitiveClassImplTest.java Mon Nov 23 15:53:48 2009
@@ -1,112 +1,112 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-import java.util.Iterator;
-
-import javax.tools.diagnostics.runtime.java.JavaClass;
-
-import junit.framework.TestCase;
-
-import org.apache.kato.hprof.image.ImagePointerImpl;
-
-/**
- * Tests the dummy class for representing dummy types.
- * There is nothing to this class, except it's name ID and loader.
- */
-public class JavaPrimitiveClassImplTest extends TestCase {
-	JavaPrimitiveClassImpl instance;
-	static String className = "name";
-	static int id = 10;
-	
-	public void setUp() {
-		instance = new JavaPrimitiveClassImpl(className, new ImagePointerImpl(id,null) , null);
-	}
-	
-	public void testName() throws Exception {
-		assertEquals(className, instance.getName());
-	}
-	
-	public void testSuperClass() throws Exception {
-		assertNull(instance.getSuperclass());
-	}
-	
-	public void testIsArray() throws Exception {
-		assertFalse(instance.isArray());
-	}
-	
-	public void testGetObject() throws Exception {
-		assertNull(instance.getObject());
-	}
-	
-	public void testGetModifiers() throws Exception {
-		assertEquals(0, instance.getModifiers());
-	}
-	
-	public void testGetID() throws Exception {
-		assertEquals(id, instance.getID().getAddress());
-	}
-	
-	public void getComponentType() throws Exception {
-		try{
-			JavaClass clazz = instance.getComponentType();
-			
-			fail("Expected IllegalArgumentException from getComponentType(), got " + clazz);
-		}catch(IllegalArgumentException e) {
-			// Expected
-		}
-	}
-	
-	public void testGetConstantPoolReferences() throws Exception {
-		Iterator iter = instance.getConstantPoolReferences().iterator();
-		
-		assertNotNull(iter);
-		
-		assertFalse(iter.hasNext());		
-	}
-	
-	public void testGetDeclaredFields() throws Exception {
-		Iterator iter = instance.getDeclaredFields().iterator();
-		
-		assertNotNull(iter);
-		
-		assertFalse(iter.hasNext());		
-	}
-	
-	public void testGetDeclaredMethods() throws Exception {
-		Iterator iter = instance.getDeclaredMethods().iterator();
-		
-		assertNotNull(iter);
-		
-		assertFalse(iter.hasNext());		
-	}
-	
-	
-	public void testGetInterfaces() throws Exception {
-		Iterator iter = instance.getInterfaces().iterator();
-		
-		assertNotNull(iter);
-		
-		assertFalse(iter.hasNext());		
-	}
-
-	public void testGetReferences() throws Exception {
-		Iterator iter = instance.getReferences().iterator();
-		
-		assertNotNull(iter);
-		
-		assertFalse(iter.hasNext());		
-	}
-	
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+import java.util.Iterator;
+
+import javax.tools.diagnostics.runtime.java.JavaClass;
+
+import junit.framework.TestCase;
+
+import org.apache.kato.hprof.image.ImagePointerImpl;
+
+/**
+ * Tests the dummy class for representing dummy types.
+ * There is nothing to this class, except it's name ID and loader.
+ */
+public class JavaPrimitiveClassImplTest extends TestCase {
+	JavaPrimitiveClassImpl instance;
+	static String className = "name";
+	static int id = 10;
+	
+	public void setUp() {
+		instance = new JavaPrimitiveClassImpl(className, new ImagePointerImpl(id,null) , null);
+	}
+	
+	public void testName() throws Exception {
+		assertEquals(className, instance.getName());
+	}
+	
+	public void testSuperClass() throws Exception {
+		assertNull(instance.getSuperclass());
+	}
+	
+	public void testIsArray() throws Exception {
+		assertFalse(instance.isArray());
+	}
+	
+	public void testGetObject() throws Exception {
+		assertNull(instance.getObject());
+	}
+	
+	public void testGetModifiers() throws Exception {
+		assertEquals(0, instance.getModifiers());
+	}
+	
+	public void testGetID() throws Exception {
+		assertEquals(id, instance.getID().getAddress());
+	}
+	
+	public void getComponentType() throws Exception {
+		try{
+			JavaClass clazz = instance.getComponentType();
+			
+			fail("Expected IllegalArgumentException from getComponentType(), got " + clazz);
+		}catch(IllegalArgumentException e) {
+			// Expected
+		}
+	}
+	
+	public void testGetConstantPoolReferences() throws Exception {
+		Iterator iter = instance.getConstantPoolReferences().iterator();
+		
+		assertNotNull(iter);
+		
+		assertFalse(iter.hasNext());		
+	}
+	
+	public void testGetDeclaredFields() throws Exception {
+		Iterator iter = instance.getDeclaredFields().iterator();
+		
+		assertNotNull(iter);
+		
+		assertFalse(iter.hasNext());		
+	}
+	
+	public void testGetDeclaredMethods() throws Exception {
+		Iterator iter = instance.getDeclaredMethods().iterator();
+		
+		assertNotNull(iter);
+		
+		assertFalse(iter.hasNext());		
+	}
+	
+	
+	public void testGetInterfaces() throws Exception {
+		Iterator iter = instance.getInterfaces().iterator();
+		
+		assertNotNull(iter);
+		
+		assertFalse(iter.hasNext());		
+	}
+
+	public void testGetReferences() throws Exception {
+		Iterator iter = instance.getReferences().iterator();
+		
+		assertNotNull(iter);
+		
+		assertFalse(iter.hasNext());		
+	}
+	
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaPrimitiveClassImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaTestClass.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaTestClass.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaTestClass.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaTestClass.java Mon Nov 23 15:53:48 2009
@@ -1,147 +1,147 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-import org.apache.kato.hprof.IJavaClass;
-import org.apache.kato.hprof.datalayer.ConstantPoolEntry;
-import org.apache.kato.hprof.datalayer.InstanceFieldEntry;
-import org.apache.kato.hprof.datalayer.StaticFieldEntry;
-
-/**
- * Implements a IJavaClass for consumption by
- * JavaClassImpl.
- *
- * Uses setters to set all values.
- */
-public class JavaTestClass implements IJavaClass {
-	long loaderID;
-	public void  setClassLoadersObjectID(long id) {
-		this.loaderID = id;
-	}
-	@Override
-	public long getClassLoaderObjectID() {
-		return loaderID;
-	}
-
-	String className;
-	public void setClassName(String className) {
-		this.className = className;
-	}
-	@Override
-	public String getClassName() {
-		return className;
-	}
-
-	long classObjectID;
-	public void setClassObjectID(long id) {
-		this.classObjectID = id;
-	}
-	@Override
-	public long getClassObjectID() {
-		return classObjectID;
-	}
-
-	int serialNo;
-	public void setClassSerialNumber(int serialNo) {
-		this.serialNo = serialNo;
-	}
-	@Override
-	public int getClassSerialNumber() {
-		return serialNo;
-	}
-
-	ConstantPoolEntry[] constantPoolEntries;
-	public void setConstantPoolEntries(ConstantPoolEntry[] entries) {
-		this.constantPoolEntries = entries;
-	}
-
-	@Override
-	public ConstantPoolEntry[] getConstantPoolEntries() {
-		return constantPoolEntries;
-	}
-
-	InstanceFieldEntry[] instanceFieldEntries;
-	public void setInstanceFields(InstanceFieldEntry[] entries) {
-		this.instanceFieldEntries = entries;
-	}
-	@Override
-	public InstanceFieldEntry[] getInstanceFields() {
-		return instanceFieldEntries;
-	}
-
-	
-	int instanceSize;
-	public void setInstanceSize(int size) {
-		this.instanceSize = size;
-	}
-	@Override
-	public int getInstanceSize() {
-		return instanceSize;
-	}
-
-	int offsetSize;
-	public void setOffsetSize(int size) {
-		this.offsetSize = size;
-	}
-	@Override
-	public int getOffsetSize() {
-		return offsetSize;
-	}
-
-	long protectionDomainObjectID;
-	public void setProtectionDomainObjectID(long id) {
-		this.protectionDomainObjectID = id;
-	}
-	@Override
-	public long getProtectionDomainObjectID() {
-		return protectionDomainObjectID;
-	}
-
-	long signersObjectID;
-	public void setSignersObjectID(long id) {
-		this.signersObjectID = id;
-	}
-	@Override
-	public long getSignersObjectID() {
-		return signersObjectID;
-	}
-
-	int stackTraceSerialNumber;
-	public void setStackTraceSerialNumber(int num) {
-		this.stackTraceSerialNumber = num;
-	}
-	@Override
-	public int getStackTraceSerialNumber() {
-		return stackTraceSerialNumber;
-	}
-
-	StaticFieldEntry staticFieldEntries[];
-	public void setStaticFields(StaticFieldEntry[] entries) {
-		this.staticFieldEntries = entries;
-	}
-	@Override
-	public StaticFieldEntry[] getStaticFields() {
-		return staticFieldEntries;
-	}
-
-	long superClassObjectID;
-	public void setSuperClassObjectID(long id) {
-		this.superClassObjectID = id;
-	}
-	@Override
-	public long getSuperClassObjectID() {
-		return superClassObjectID;
-	}
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+import org.apache.kato.hprof.IJavaClass;
+import org.apache.kato.hprof.datalayer.ConstantPoolEntry;
+import org.apache.kato.hprof.datalayer.InstanceFieldEntry;
+import org.apache.kato.hprof.datalayer.StaticFieldEntry;
+
+/**
+ * Implements a IJavaClass for consumption by
+ * JavaClassImpl.
+ *
+ * Uses setters to set all values.
+ */
+public class JavaTestClass implements IJavaClass {
+	long loaderID;
+	public void  setClassLoadersObjectID(long id) {
+		this.loaderID = id;
+	}
+	@Override
+	public long getClassLoaderObjectID() {
+		return loaderID;
+	}
+
+	String className;
+	public void setClassName(String className) {
+		this.className = className;
+	}
+	@Override
+	public String getClassName() {
+		return className;
+	}
+
+	long classObjectID;
+	public void setClassObjectID(long id) {
+		this.classObjectID = id;
+	}
+	@Override
+	public long getClassObjectID() {
+		return classObjectID;
+	}
+
+	int serialNo;
+	public void setClassSerialNumber(int serialNo) {
+		this.serialNo = serialNo;
+	}
+	@Override
+	public int getClassSerialNumber() {
+		return serialNo;
+	}
+
+	ConstantPoolEntry[] constantPoolEntries;
+	public void setConstantPoolEntries(ConstantPoolEntry[] entries) {
+		this.constantPoolEntries = entries;
+	}
+
+	@Override
+	public ConstantPoolEntry[] getConstantPoolEntries() {
+		return constantPoolEntries;
+	}
+
+	InstanceFieldEntry[] instanceFieldEntries;
+	public void setInstanceFields(InstanceFieldEntry[] entries) {
+		this.instanceFieldEntries = entries;
+	}
+	@Override
+	public InstanceFieldEntry[] getInstanceFields() {
+		return instanceFieldEntries;
+	}
+
+	
+	int instanceSize;
+	public void setInstanceSize(int size) {
+		this.instanceSize = size;
+	}
+	@Override
+	public int getInstanceSize() {
+		return instanceSize;
+	}
+
+	int offsetSize;
+	public void setOffsetSize(int size) {
+		this.offsetSize = size;
+	}
+	@Override
+	public int getOffsetSize() {
+		return offsetSize;
+	}
+
+	long protectionDomainObjectID;
+	public void setProtectionDomainObjectID(long id) {
+		this.protectionDomainObjectID = id;
+	}
+	@Override
+	public long getProtectionDomainObjectID() {
+		return protectionDomainObjectID;
+	}
+
+	long signersObjectID;
+	public void setSignersObjectID(long id) {
+		this.signersObjectID = id;
+	}
+	@Override
+	public long getSignersObjectID() {
+		return signersObjectID;
+	}
+
+	int stackTraceSerialNumber;
+	public void setStackTraceSerialNumber(int num) {
+		this.stackTraceSerialNumber = num;
+	}
+	@Override
+	public int getStackTraceSerialNumber() {
+		return stackTraceSerialNumber;
+	}
+
+	StaticFieldEntry staticFieldEntries[];
+	public void setStaticFields(StaticFieldEntry[] entries) {
+		this.staticFieldEntries = entries;
+	}
+	@Override
+	public StaticFieldEntry[] getStaticFields() {
+		return staticFieldEntries;
+	}
+
+	long superClassObjectID;
+	public void setSuperClassObjectID(long id) {
+		this.superClassObjectID = id;
+	}
+	@Override
+	public long getSuperClassObjectID() {
+		return superClassObjectID;
+	}
+
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/JavaTestClass.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/PrimitiveArrayTestImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/PrimitiveArrayTestImpl.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/PrimitiveArrayTestImpl.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/PrimitiveArrayTestImpl.java Mon Nov 23 15:53:48 2009
@@ -1,157 +1,157 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.hprof.java;
-
-import org.apache.kato.common.BasicType;
-import org.apache.kato.hprof.datalayer.IGCPrimitiveArrayHeapDumpRecord;
-
-/**
- * 
- * @author monteith
- *
- */
-public class PrimitiveArrayTestImpl implements IGCPrimitiveArrayHeapDumpRecord, BasicType{
-
-	long ID;
-	public void setID(long id) {
-		this.ID = id;
-	}
-	@Override
-	public long getID() {
-		return this.ID;
-	}
-
-	int stackTraceNumber;
-	public void setStackTraceNumber(int num) {
-		this.stackTraceNumber = num;
-	}
-	@Override
-	public int getStackTraceNumber() {
-		return stackTraceNumber;
-	}
-	
-	@Override
-	public short getElementType() {
-		return elementType;
-	}
-	
-	@Override
-	public int getNumberOfElements() {
-		return numElements;
-	}
-	
-	
-	boolean[] booleanArray;
-	byte[] byteArray;
-	char[] charArray;
-	short[] shortArray;
-	int[] intArray;
-	long[] longArray;
-	float[] floatArray;
-	double[] doubleArray;
-	short elementType;
-	int numElements;
-	
-	public PrimitiveArrayTestImpl(boolean[] array) {
-		this.booleanArray = array;
-		this.numElements = array.length;
-		this.elementType = BOOLEAN;
-	}
-	
-	@Override
-	public boolean getBooleanElement(int index) {
-		return booleanArray[index];
-	}
-
-	public PrimitiveArrayTestImpl(byte[] array) {
-		this.byteArray = array;
-		this.numElements = array.length;
-		this.elementType = BYTE;
-	}
-	
-	@Override
-	public short getByteElement(int index) {
-		return byteArray[index];
-	}
-
-	public PrimitiveArrayTestImpl(char[] array) {
-		this.charArray = array;
-		this.numElements = array.length;
-		this.elementType = CHAR;
-	}
-	
-	@Override
-	public char getCharElement(int index) {
-		return charArray[index];
-	}
-
-	public PrimitiveArrayTestImpl(double[] array) {
-		this.doubleArray = array;
-		this.numElements = array.length;
-		this.elementType = DOUBLE;
-	}
-	
-	@Override
-	public double getDoubleElement(int index) {
-		return doubleArray[index];
-	}
-
-
-
-	public PrimitiveArrayTestImpl(float[] array) {
-		this.floatArray = array;
-		this.numElements = array.length;
-		this.elementType = FLOAT;
-	}
-	
-	@Override
-	public float getFloatElement(int index) {
-		return floatArray[index];
-	}
-	public PrimitiveArrayTestImpl(int[] array) {
-		this.intArray = array;
-		this.numElements = array.length;
-		this.elementType = INT;
-	}
-	@Override
-	public int getIntElement(int index) {
-		return intArray[index];
-	}
-	
-	public PrimitiveArrayTestImpl(long[] array) {
-		this.longArray = array;
-		this.numElements = array.length;
-		this.elementType = LONG;
-	}
-	
-	@Override
-	public long getLongElement(int index) {
-		return longArray[index];
-	}
-
-
-
-	public PrimitiveArrayTestImpl(short[] array) {
-		this.shortArray = array;
-		this.numElements = array.length;
-		this.elementType = SHORT;
-	}
-	
-	@Override
-	public short getShortElement(int index) {
-		return shortArray[index];
-	}
-
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.hprof.java;
+
+import org.apache.kato.common.BasicType;
+import org.apache.kato.hprof.datalayer.IGCPrimitiveArrayHeapDumpRecord;
+
+/**
+ * 
+ * @author monteith
+ *
+ */
+public class PrimitiveArrayTestImpl implements IGCPrimitiveArrayHeapDumpRecord, BasicType{
+
+	long ID;
+	public void setID(long id) {
+		this.ID = id;
+	}
+	@Override
+	public long getID() {
+		return this.ID;
+	}
+
+	int stackTraceNumber;
+	public void setStackTraceNumber(int num) {
+		this.stackTraceNumber = num;
+	}
+	@Override
+	public int getStackTraceNumber() {
+		return stackTraceNumber;
+	}
+	
+	@Override
+	public short getElementType() {
+		return elementType;
+	}
+	
+	@Override
+	public int getNumberOfElements() {
+		return numElements;
+	}
+	
+	
+	boolean[] booleanArray;
+	byte[] byteArray;
+	char[] charArray;
+	short[] shortArray;
+	int[] intArray;
+	long[] longArray;
+	float[] floatArray;
+	double[] doubleArray;
+	short elementType;
+	int numElements;
+	
+	public PrimitiveArrayTestImpl(boolean[] array) {
+		this.booleanArray = array;
+		this.numElements = array.length;
+		this.elementType = BOOLEAN;
+	}
+	
+	@Override
+	public boolean getBooleanElement(int index) {
+		return booleanArray[index];
+	}
+
+	public PrimitiveArrayTestImpl(byte[] array) {
+		this.byteArray = array;
+		this.numElements = array.length;
+		this.elementType = BYTE;
+	}
+	
+	@Override
+	public short getByteElement(int index) {
+		return byteArray[index];
+	}
+
+	public PrimitiveArrayTestImpl(char[] array) {
+		this.charArray = array;
+		this.numElements = array.length;
+		this.elementType = CHAR;
+	}
+	
+	@Override
+	public char getCharElement(int index) {
+		return charArray[index];
+	}
+
+	public PrimitiveArrayTestImpl(double[] array) {
+		this.doubleArray = array;
+		this.numElements = array.length;
+		this.elementType = DOUBLE;
+	}
+	
+	@Override
+	public double getDoubleElement(int index) {
+		return doubleArray[index];
+	}
+
+
+
+	public PrimitiveArrayTestImpl(float[] array) {
+		this.floatArray = array;
+		this.numElements = array.length;
+		this.elementType = FLOAT;
+	}
+	
+	@Override
+	public float getFloatElement(int index) {
+		return floatArray[index];
+	}
+	public PrimitiveArrayTestImpl(int[] array) {
+		this.intArray = array;
+		this.numElements = array.length;
+		this.elementType = INT;
+	}
+	@Override
+	public int getIntElement(int index) {
+		return intArray[index];
+	}
+	
+	public PrimitiveArrayTestImpl(long[] array) {
+		this.longArray = array;
+		this.numElements = array.length;
+		this.elementType = LONG;
+	}
+	
+	@Override
+	public long getLongElement(int index) {
+		return longArray[index];
+	}
+
+
+
+	public PrimitiveArrayTestImpl(short[] array) {
+		this.shortArray = array;
+		this.numElements = array.length;
+		this.elementType = SHORT;
+	}
+	
+	@Override
+	public short getShortElement(int index) {
+		return shortArray[index];
+	}
+
+
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/org/apache/kato/hprof/java/PrimitiveArrayTestImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/AllTests.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/TestJavaHeap.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/AbstractHProfTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/TestImage.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/TestImageAddressSpace.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/TestImageFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message