sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1466577 - in /sis/branches/JDK7: sis-metadata/src/main/java/org/apache/sis/metadata/ sis-utility/src/main/java/org/apache/sis/internal/util/ sis-utility/src/main/java/org/apache/sis/util/collection/
Date Wed, 10 Apr 2013 17:33:21 GMT
Author: desruisseaux
Date: Wed Apr 10 17:33:20 2013
New Revision: 1466577

URL: http://svn.apache.org/r1466577
Log:
Moved CheckedHashSet, CheckedHashMap and CheckedArrayList out of public API,
because those classes have relatively low values and may have incompatible
changes depending on whether we want to synchronize metadata objects or not.

Added:
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedArrayList.java
      - copied, changed from r1466461, sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedArrayList.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedHashSet.java
      - copied, changed from r1466461, sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedHashSet.java
Removed:
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedArrayList.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedHashMap.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedHashSet.java
Modified:
    sis/branches/JDK7/sis-metadata/src/main/java/org/apache/sis/metadata/ModifiableMetadata.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/package-info.java

Modified: sis/branches/JDK7/sis-metadata/src/main/java/org/apache/sis/metadata/ModifiableMetadata.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-metadata/src/main/java/org/apache/sis/metadata/ModifiableMetadata.java?rev=1466577&r1=1466576&r2=1466577&view=diff
==============================================================================
--- sis/branches/JDK7/sis-metadata/src/main/java/org/apache/sis/metadata/ModifiableMetadata.java
[UTF-8] (original)
+++ sis/branches/JDK7/sis-metadata/src/main/java/org/apache/sis/metadata/ModifiableMetadata.java
[UTF-8] Wed Apr 10 17:33:20 2013
@@ -25,8 +25,8 @@ import net.jcip.annotations.ThreadSafe;
 import org.opengis.util.CodeList;
 import org.apache.sis.util.logging.Logging;
 import org.apache.sis.util.resources.Errors;
-import org.apache.sis.util.collection.CheckedHashSet;
-import org.apache.sis.util.collection.CheckedArrayList;
+import org.apache.sis.internal.util.CheckedHashSet;
+import org.apache.sis.internal.util.CheckedArrayList;
 
 import static org.apache.sis.util.ArgumentChecks.ensureNonNull;
 import static org.apache.sis.util.collection.CollectionsExt.isNullOrEmpty;

Copied: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedArrayList.java
(from r1466461, sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedArrayList.java)
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedArrayList.java?p2=sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedArrayList.java&p1=sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedArrayList.java&r1=1466461&r2=1466577&rev=1466577&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedArrayList.java
[UTF-8] (original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedArrayList.java
[UTF-8] Wed Apr 10 17:33:20 2013
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.sis.util.collection;
+package org.apache.sis.internal.util;
 
 import java.util.List;
 import java.util.Iterator;
@@ -26,6 +26,7 @@ import java.util.NoSuchElementException;
 import net.jcip.annotations.ThreadSafe;
 import org.apache.sis.util.Decorator;
 import org.apache.sis.util.resources.Errors;
+import org.apache.sis.util.collection.CheckedContainer;
 
 import static org.apache.sis.util.ArgumentChecks.ensureNonNull;
 

Copied: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedHashSet.java
(from r1466461, sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedHashSet.java)
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedHashSet.java?p2=sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedHashSet.java&p1=sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedHashSet.java&r1=1466461&r2=1466577&rev=1466577&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/CheckedHashSet.java
[UTF-8] (original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/CheckedHashSet.java
[UTF-8] Wed Apr 10 17:33:20 2013
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.sis.util.collection;
+package org.apache.sis.internal.util;
 
 import java.util.Set;
 import java.util.Iterator;
@@ -25,6 +25,7 @@ import java.util.NoSuchElementException;
 import net.jcip.annotations.ThreadSafe;
 import org.apache.sis.util.Decorator;
 import org.apache.sis.util.resources.Errors;
+import org.apache.sis.util.collection.CheckedContainer;
 
 import static org.apache.sis.util.ArgumentChecks.ensureNonNull;
 

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/package-info.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/package-info.java?rev=1466577&r1=1466576&r2=1466577&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/package-info.java
[UTF-8] (original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/package-info.java
[UTF-8] Wed Apr 10 17:33:20 2013
@@ -34,16 +34,6 @@
  *     and supports concurrency, while the other implementations are more lightweight, sometime
  *     thread-safe but without concurrency support.
  *   </li><li>
- *     {@link org.apache.sis.util.collection.CheckedContainer},
- *     {@link org.apache.sis.util.collection.CheckedArrayList},
- *     {@link org.apache.sis.util.collection.CheckedHashSet} and
- *     {@link org.apache.sis.util.collection.CheckedHashMap} can be used for combining <em>runtime</em>
- *     type safety with thread-safety (without concurrency). They are similar in functionalities
to
- *     the wrappers provided by the standard {@link java.util.Collections} methods, except
that they
- *     combine both functionalities in a single class (so reducing the amount of indirection),
provide
- *     a hook for making the collections read-only and allow the caller to specify the synchronization
- *     lock of his choice.
- *   </li><li>
  *     {@linkplain org.apache.sis.util.collection.CollectionsExt#derivedMap Derived Map}
and
  *     {@linkplain org.apache.sis.util.collection.CollectionsExt#derivedSet derived Set}
are wrapper collections
  *     in which the keys or the values are derived on-the-fly from the content of an other
collection.



Mime
View raw message