From ab857d782695da8f9970aaf00f09642879c0c3c5 Mon Sep 17 00:00:00 2001 From: jzhou Date: Fri, 20 Jan 2012 01:54:03 +0000 Subject: [PATCH] changes to MGC classlibrary --- Robust/src/ClassLibrary/MGC/HashMapIterator.java | 2 +- Robust/src/ClassLibrary/MGC/Vector.java | 2 +- Robust/src/ClassLibrary/MGC/gnu/Collections.java | 4 ++-- Robust/src/ClassLibrary/MGC/gnu/LinkedList.java | 2 +- Robust/src/ClassLibrary/MGC/gnu/Properties.java | 4 ++-- Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Robust/src/ClassLibrary/MGC/HashMapIterator.java b/Robust/src/ClassLibrary/MGC/HashMapIterator.java index e8f7a7bf..9996a8e1 100644 --- a/Robust/src/ClassLibrary/MGC/HashMapIterator.java +++ b/Robust/src/ClassLibrary/MGC/HashMapIterator.java @@ -45,7 +45,7 @@ class HashMapIterator implements Iterator { } public void remove() { - System.out.println("HashMapIterator.remove() not implemented."); + System.out.println("Unimplemented HashMapIterator.remove()!"); System.exit(-1); } } diff --git a/Robust/src/ClassLibrary/MGC/Vector.java b/Robust/src/ClassLibrary/MGC/Vector.java index 5d729f2c..1cd11dd5 100644 --- a/Robust/src/ClassLibrary/MGC/Vector.java +++ b/Robust/src/ClassLibrary/MGC/Vector.java @@ -100,7 +100,7 @@ public class Vector implements Set { } public Enumeration elements() { - System.printString("Vector.elements not implemented\n"); + System.printString("Unimplemented Vector.elements()!\n"); System.exit(-1); } diff --git a/Robust/src/ClassLibrary/MGC/gnu/Collections.java b/Robust/src/ClassLibrary/MGC/gnu/Collections.java index a51c160a..52c91b4c 100644 --- a/Robust/src/ClassLibrary/MGC/gnu/Collections.java +++ b/Robust/src/ClassLibrary/MGC/gnu/Collections.java @@ -95,7 +95,7 @@ public class Collections i.set(a[pos]); }*/ //TODO - System.println("Collections.sort() invoked"); + System.println("Unimplemented Collections.sort() invoked"); } public static void sort(List l, Comparator c) @@ -109,7 +109,7 @@ public class Collections i.set(a[pos]); }*/ // TODO - System.println("Collections.sort(l, c) invoked"); + System.println("Unimplemented Collections.sort(l, c) invoked"); } diff --git a/Robust/src/ClassLibrary/MGC/gnu/LinkedList.java b/Robust/src/ClassLibrary/MGC/gnu/LinkedList.java index efbcfe93..5ad8b51e 100644 --- a/Robust/src/ClassLibrary/MGC/gnu/LinkedList.java +++ b/Robust/src/ClassLibrary/MGC/gnu/LinkedList.java @@ -64,7 +64,7 @@ public class LinkedList implements Queue { } public Object clone() { - System.out.println("LinkedList.clone() not implemented."); + System.out.println("Unimplemented LinkedList.clone()!"); System.exit(-1); } diff --git a/Robust/src/ClassLibrary/MGC/gnu/Properties.java b/Robust/src/ClassLibrary/MGC/gnu/Properties.java index 7dc2d4b0..cfbcfdea 100644 --- a/Robust/src/ClassLibrary/MGC/gnu/Properties.java +++ b/Robust/src/ClassLibrary/MGC/gnu/Properties.java @@ -359,7 +359,7 @@ label = Name:\\u0020 public void load(InputStream inStream) throws IOException { //load(new InputStreamReader(inStream, "ISO-8859-1")); - //TODO System.println("Properties.load(InputStream) invoked"); + System.println("Unimplemented Properties.load(InputStream) invoked"); } /** @@ -434,7 +434,7 @@ label = Name:\\u0020 } writer.flush ();*/ - System.println("Properties.store() invoked"); + System.println("Unimplemented Properties.store() invoked"); } /** diff --git a/Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java b/Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java index b68882fa..d5914b57 100644 --- a/Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java +++ b/Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java @@ -309,7 +309,7 @@ public class ReentrantLock implements /*Lock, java.io.*/Serializable { * @throws InterruptedException if the current thread is interrupted */ public void lockInterruptibly() throws InterruptedException { - System.out.println("ReentrantLock.lockInterruptibly() is not supported!"); + System.out.println("Unimplemented ReentrantLock.lockInterruptibly()!"); //sync.acquireInterruptibly(1); } -- 2.34.1