diff --git a/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/CollectionSupport.java b/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/CollectionSupport.java index 85d3fe9..c3864cc 100644 --- a/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/CollectionSupport.java +++ b/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/CollectionSupport.java @@ -54,111 +54,93 @@ public class CollectionSupport implements ICollection { } - @Override public boolean add(T arg0) { return myCollection.add(arg0); } - @Override public boolean addAll(Collection arg0) { return myCollection.addAll(arg0); } - @Override public void clear() { myCollection.clear(); } - @Override public boolean contains(Object arg0) { return myCollection.contains(arg0); } - @Override public boolean containsAll(Collection arg0) { return myCollection.containsAll(arg0); } - @Override public boolean isEmpty() { return myCollection.isEmpty(); } - @Override public boolean remove(Object arg0) { return myCollection.remove(arg0); } - @Override public boolean removeAll(Collection arg0) { return myCollection.removeAll(arg0); } - @Override public boolean retainAll(Collection arg0) { return myCollection.retainAll(arg0); } - @Override public int size() { return myCollection.size(); } - @Override public Object[] toArray() { return myCollection.toArray(); } - @Override public S[] toArray(S[] arg0) { return myCollection.toArray(arg0); } - @Override public boolean Contains(T x) throws Exception { return myCollection.contains(x); } - @Override public void Add(T x) throws Exception { myCollection.add(x); } - @Override public boolean Remove(T x) throws Exception { return myCollection.remove(x); } - @Override public void Clear() throws Exception { myCollection.clear(); } - @Override public IEnumerator GetEnumerator() throws Exception { return new EnumeratorSupport(myCollection.iterator()); } - @Override public void CopyTo(T[] arr, int i) throws Exception { if (arr == null) { throw new NullArgumentException("arr"); diff --git a/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/IteratorSupport.java b/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/IteratorSupport.java index d55abb9..e4bed75 100644 --- a/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/IteratorSupport.java +++ b/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/IteratorSupport.java @@ -59,7 +59,6 @@ public class IteratorSupport implements Iterator{ } } - @Override /*** * hasNext() can be called multiple times and should keep returning the same answer * until next() has been called. @@ -68,7 +67,6 @@ public class IteratorSupport implements Iterator{ return hasNext; } - @Override public T next() { if (!hasNext) { throw new NoSuchElementException(); @@ -84,7 +82,6 @@ public class IteratorSupport implements Iterator{ return ret; } - @Override public void remove() { throw new UnsupportedOperationException("CS2J: IteratorSupport.remove()"); diff --git a/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/LCC/CollectionSupport.java b/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/LCC/CollectionSupport.java index 30506ef..90ec157 100644 --- a/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/LCC/CollectionSupport.java +++ b/CS2JLibrary/src/CS2JNet/JavaSupport/Collections/Generic/LCC/CollectionSupport.java @@ -52,112 +52,92 @@ public class CollectionSupport implements ICollection { return myCollection.iterator(); } - - @Override public boolean add(T arg0) { return myCollection.add(arg0); } - - @Override public boolean addAll(Collection arg0) { return myCollection.addAll(arg0); } - @Override public void clear() { myCollection.clear(); } - @Override public boolean contains(Object arg0) { return myCollection.contains(arg0); } - - @Override + public boolean containsAll(Collection arg0) { return myCollection.containsAll(arg0); } - @Override public boolean isEmpty() { return myCollection.isEmpty(); } - @Override public boolean remove(Object arg0) { return myCollection.remove(arg0); } - @Override public boolean removeAll(Collection arg0) { return myCollection.removeAll(arg0); } - @Override public boolean retainAll(Collection arg0) { return myCollection.retainAll(arg0); } - @Override public int size() { return myCollection.size(); } - @Override public Object[] toArray() { return myCollection.toArray(); } - @Override public S[] toArray(S[] arg0) { return myCollection.toArray(arg0); } - @Override public boolean Contains(T x) throws Exception { return myCollection.contains(x); } - @Override public void Add(T x) throws Exception { myCollection.add(x); } - @Override public boolean Remove(T x) throws Exception { return myCollection.remove(x); } - @Override public void Clear() throws Exception { myCollection.clear(); } - @Override public IEnumerator getEnumerator() throws Exception { return new EnumeratorSupport(myCollection.iterator()); } - @Override public void copyTo(T[] arr, int i) throws Exception { if (arr == null) { throw new NullArgumentException("arr"); diff --git a/CS2JLibrary/src/CS2JNet/JavaSupport/language/EventCollection.java b/CS2JLibrary/src/CS2JNet/JavaSupport/language/EventCollection.java index d1ea809..7733a80 100644 --- a/CS2JLibrary/src/CS2JNet/JavaSupport/language/EventCollection.java +++ b/CS2JLibrary/src/CS2JNet/JavaSupport/language/EventCollection.java @@ -31,7 +31,6 @@ public class EventCollection implements IEventCollection { /* (non-Javadoc) * @see CS2JNet.JavaSupport.language.IEventCollection#Invoke(java.lang.Object, CS2JNet.JavaSupport.language.EventArgs) */ - @Override public void Invoke(Object cause, EventArgs e) throws CS2JRunTimeException { if (listeners != null) { // do something here diff --git a/CS2JLibrary/src/CS2JNet/System/Collections/CSList.java b/CS2JLibrary/src/CS2JNet/System/Collections/CSList.java index 0bfd3e7..e370b0b 100644 --- a/CS2JLibrary/src/CS2JNet/System/Collections/CSList.java +++ b/CS2JLibrary/src/CS2JNet/System/Collections/CSList.java @@ -60,99 +60,80 @@ public class CSList implements ICollection, IEnumerable, Collection } } - - @Override + public Iterator iterator() { return myList.iterator(); } - @Override public boolean add(T arg0) { return myList.add(arg0); } - @Override public boolean addAll(Collection arg0) { return myList.addAll(arg0); } - @Override public void clear() { myList.clear(); } - @Override public boolean contains(Object arg0) { return myList.contains(arg0); } - @Override public boolean containsAll(Collection arg0) { return myList.containsAll(arg0); } - @Override public boolean isEmpty() { return myList.isEmpty(); } - @Override public boolean remove(Object arg0) { return myList.remove(arg0); } - @Override public boolean removeAll(Collection arg0) { return myList.removeAll(arg0); } - @Override public boolean retainAll(Collection arg0) { return myList.retainAll(arg0); } - @Override public int size() { return myList.size(); } - @Override public Object[] toArray() { return myList.toArray(); } - @Override public S[] toArray(S[] arg0) { return myList.toArray(arg0); } - @Override public boolean Contains(T x) throws Exception { return myList.contains(x); } - @Override public void Add(T x) throws Exception { myList.add(x); } - @Override public boolean Remove(T x) throws Exception { return myList.remove(x); } - @Override public void Clear() throws Exception { myList.clear(); } - @Override public IEnumerator GetEnumerator() throws Exception { return EnumeratorSupport.mk(myList.iterator()); } - @Override public void CopyTo(T[] arr, int i) throws Exception { if (arr == null) throw new ArgumentNullException(); diff --git a/CS2JLibrary/src/CS2JNet/System/Collections/LCC/CSList.java b/CS2JLibrary/src/CS2JNet/System/Collections/LCC/CSList.java index 0b10f4a..d8a95bb 100644 --- a/CS2JLibrary/src/CS2JNet/System/Collections/LCC/CSList.java +++ b/CS2JLibrary/src/CS2JNet/System/Collections/LCC/CSList.java @@ -60,88 +60,88 @@ public class CSList implements ICollection, IEnumerable, Collection } } - @Override + public Iterator iterator() { return myList.iterator(); } - @Override + public boolean add(T arg0) { return myList.add(arg0); } - @Override + public boolean addAll(Collection arg0) { return myList.addAll(arg0); } - @Override + public void clear() { myList.clear(); } - @Override + public boolean contains(Object arg0) { return myList.contains(arg0); } - @Override + public boolean containsAll(Collection arg0) { return myList.containsAll(arg0); } - @Override + public boolean isEmpty() { return myList.isEmpty(); } - @Override + public boolean remove(Object arg0) { return myList.remove(arg0); } - @Override + public boolean removeAll(Collection arg0) { return myList.removeAll(arg0); } - @Override + public boolean retainAll(Collection arg0) { return myList.retainAll(arg0); } - @Override + public int size() { return myList.size(); } - @Override + public Object[] toArray() { return myList.toArray(); } - @Override + public S[] toArray(S[] arg0) { return myList.toArray(arg0); } - @Override + public boolean Contains(T x) throws Exception { return myList.contains(x); } - @Override + public void Add(T x) throws Exception { myList.add(x); } - @Override + public boolean Remove(T x) throws Exception { return myList.remove(x); } - @Override + public void Clear() throws Exception { myList.clear(); } @@ -162,12 +162,12 @@ public class CSList implements ICollection, IEnumerable, Collection } } - @Override + public IEnumerator getEnumerator() throws Exception { return GetEnumerator(); } - @Override + public void copyTo(T[] arr, int i) throws Exception { CopyTo(arr, i); } diff --git a/CS2JLibrary/src/CS2JNet/System/Disposable.java b/CS2JLibrary/src/CS2JNet/System/Disposable.java index 5e70cab..32ec7ca 100644 --- a/CS2JLibrary/src/CS2JNet/System/Disposable.java +++ b/CS2JLibrary/src/CS2JNet/System/Disposable.java @@ -44,7 +44,6 @@ public class Disposable implements IDisposable { /* (non-Javadoc) * @see CS2JNet.System.IDisposable#Dispose() */ - @Override public void Dispose() throws Exception { if (dispVal != null) dispVal.Dispose(); diff --git a/CS2JLibrary/src/CS2JNet/System/LCC/Disposable.java b/CS2JLibrary/src/CS2JNet/System/LCC/Disposable.java index d70a6e9..90b4444 100644 --- a/CS2JLibrary/src/CS2JNet/System/LCC/Disposable.java +++ b/CS2JLibrary/src/CS2JNet/System/LCC/Disposable.java @@ -44,7 +44,6 @@ public class Disposable implements IDisposable { /* (non-Javadoc) * @see CS2JNet.System.IDisposable#Dispose() */ - @Override public void dispose() throws Exception { if (dispVal != null) dispVal.dispose(); diff --git a/CS2JLibrary/src/CS2JNet/System/Net/Mail/MailAddressCollection.java b/CS2JLibrary/src/CS2JNet/System/Net/Mail/MailAddressCollection.java index 8bf33cb..2d17feb 100644 --- a/CS2JLibrary/src/CS2JNet/System/Net/Mail/MailAddressCollection.java +++ b/CS2JLibrary/src/CS2JNet/System/Net/Mail/MailAddressCollection.java @@ -34,8 +34,7 @@ import javax.mail.internet.AddressException; public class MailAddressCollection implements Collection { List addresses = new ArrayList(); - - @Override + public boolean add(MailAddress arg0) { return addresses.add(arg0); } @@ -44,63 +43,51 @@ public class MailAddressCollection implements Collection { return addresses.add(new MailAddress(arg0)); } - @Override public boolean addAll(Collection arg0) { return addresses.addAll(arg0); } - @Override public void clear() { addresses.clear(); } - @Override public boolean contains(Object arg0) { return addresses.contains(arg0); } - @Override public boolean containsAll(Collection arg0) { return addresses.containsAll(arg0); } - @Override public boolean isEmpty() { return addresses.isEmpty(); } - @Override public Iterator iterator() { return addresses.iterator(); } - @Override public boolean remove(Object arg0) { return addresses.remove(arg0); } - @Override public boolean removeAll(Collection arg0) { return addresses.removeAll(arg0); } - @Override public boolean retainAll(Collection arg0) { return addresses.retainAll(arg0); } - @Override public int size() { return addresses.size(); } - @Override public Object[] toArray() { return addresses.toArray(); } - @Override public T[] toArray(T[] arg0) { return (T[]) addresses.toArray(); }