sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1404978 - in /sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis: internal/simple/SimpleCharacterIterator.java io/AppendableWriter.java io/package-info.java util/IdentityConverter.java util/collection/package-info.java
Date Fri, 02 Nov 2012 14:39:44 GMT
Author: desruisseaux
Date: Fri Nov  2 14:39:44 2012
New Revision: 1404978

URL: http://svn.apache.org/viewvc?rev=1404978&view=rev
Log:
Various minor documentation fixes.

Modified:
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleCharacterIterator.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/AppendableWriter.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/package-info.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/IdentityConverter.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/package-info.java

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleCharacterIterator.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleCharacterIterator.java?rev=1404978&r1=1404977&r2=1404978&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleCharacterIterator.java
(original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleCharacterIterator.java
Fri Nov  2 14:39:44 2012
@@ -18,6 +18,7 @@ package org.apache.sis.internal.simple;
 
 import java.io.Serializable;
 import java.text.CharacterIterator;
+import org.apache.sis.util.Decorator;
 import org.apache.sis.util.ArgumentChecks;
 
 
@@ -30,6 +31,7 @@ import org.apache.sis.util.ArgumentCheck
  * @version 0.3
  * @module
  */
+@Decorator(CharSequence.class)
 public class SimpleCharacterIterator implements CharacterIterator, CharSequence, Serializable
{
     /**
      * For cross-version compatibility.

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/AppendableWriter.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/AppendableWriter.java?rev=1404978&r1=1404977&r2=1404978&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/AppendableWriter.java (original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/AppendableWriter.java Fri
Nov  2 14:39:44 2012
@@ -139,7 +139,7 @@ final class AppendableWriter extends Wri
     }
 
     /**
-     * IF {@link #out} implements {@link Flushable}, or is a {@link FilteredAppendable}
wrapper
+     * If {@link #out} implements {@link Flushable}, or is a {@link FilteredAppendable}
wrapper
      * around a flushable object, delegates to that object. Otherwise do nothing.
      */
     @Override
@@ -150,7 +150,7 @@ final class AppendableWriter extends Wri
     }
 
     /**
-     * IF {@link #out} implements {@link Closeable}, or is a {@link FilteredAppendable}
wrapper
+     * If {@link #out} implements {@link Closeable}, or is a {@link FilteredAppendable}
wrapper
      * around a closeable object, delegates to that object. Otherwise just flush (if possible).
      */
     @Override

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/package-info.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/package-info.java?rev=1404978&r1=1404977&r2=1404978&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/package-info.java (original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/io/package-info.java Fri Nov
 2 14:39:44 2012
@@ -28,7 +28,7 @@
  * Some formatters in this package make extensive use of Unicode characters. This may produce
  * unexpected results in a Windows console, unless the underlying output stream uses the
correct
  * encoding (e.g. {@code new OutputStreamWriter(System.out, "Cp437")}). To display the appropriate
- * code page for a Windows console, type <code>chcp</code> on the command line.
+ * code page for a Windows console, type {@code chcp} on the command line.
  *
  * {@section Supplementary Unicode characters}
  * This package can handle the {@linkplain java.lang.Character#isSupplementaryCodePoint(int)

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/IdentityConverter.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/IdentityConverter.java?rev=1404978&r1=1404977&r2=1404978&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/IdentityConverter.java
(original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/IdentityConverter.java
Fri Nov  2 14:39:44 2012
@@ -78,6 +78,11 @@ final class IdentityConverter<T> impleme
 
     /**
      * Returns the properties of this converter.
+     * This method returns a new {@link EnumSet} instead than returning a constant, because
+     * creating {@code EnumSet} is cheap and the standard JDK implementation has optimizations
+     * for bulk operations between {@code EnumSet} instances. Those optimizations are lost
(at
+     * least on JDK6) is we wrap the {@code EnumSet} in a {@code Collections.unmodifiableSet}
+     * view.
      */
     @Override
     public Set<FunctionProperty> properties() {

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=1404978&r1=1404977&r2=1404978&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/package-info.java
(original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/collection/package-info.java
Fri Nov  2 14:39:44 2012
@@ -47,6 +47,7 @@
  *     {@linkplain org.apache.sis.util.collection.Collections#derivedMap Derived Map} and
  *     {@linkplain org.apache.sis.util.collection.Collections#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.
+ *     The can also be used for creating filtered views.
  *   </li><li>
  *     {@link org.apache.sis.util.collection.IntegerList} and
  *     {@link org.apache.sis.util.collection.RangeSet} are collections specialized for a
particular kind



Mime
View raw message