You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2017/01/18 05:31:43 UTC

svn commit: r1779291 [1/2] - in /sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis: internal/converter/ internal/jaxb/ internal/jaxb/gco/ internal/jaxb/gmd/ internal/jaxb/gml/ internal/system/ internal/test/ internal/util/ io/ math/ measu...

Author: desruisseaux
Date: Wed Jan 18 05:31:42 2017
New Revision: 1779291

URL: http://svn.apache.org/viewvc?rev=1779291&view=rev
Log:
Javadoc formatting and minor compiler warning fixes on sis-utility tests.

Modified:
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/AngleConverterTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/ConverterRegistryTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/FallbackConverterTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/NumberConverterTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/PathConverterTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/StringConverterTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/ModifiableIdentifierMapTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/XmlUtilitiesTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeMock.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gmd/LanguageCodeTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gml/TimePeriodTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/system/ReferenceQueueConsumerTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/test/XMLComparatorTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/CitationsTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/DoubleDoubleTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/AppenderTestCase.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/EchoAppendable.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LeftMarginTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LineAppenderTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/SingleCharAppendable.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TableAppenderTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TabulationExpansionTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/WordWrapTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/DecimalFunctionsTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/PlaneTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/StatisticsTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleFormatTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/FormattedCharacterIteratorTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/RangeTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/AnnotationsTestCase.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/Assume.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOn.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOnMethod.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/LoggingWatcher.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/TestCase.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/TestSuite.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/XMLComparator.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/XMLTestCase.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/foreigner/SerializableTableColumn.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/mock/CoordinateSystemAxisMock.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/mock/IdentifiedObjectMock.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/mock/VerticalCRSMock.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/ClassesTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/CacheTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/CodeListSetTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/DerivedMapTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/DerivedSetTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/IntegerListTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/TreeTablesTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/WeakHashSetTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/WeakValueHashMapTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/AbstractNameTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/DefaultInternationalStringTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/DefaultNameFactoryTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/LargeCodeList.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/NameMarshallingTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/NamesTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/TypeNamesTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/logging/EmptyWarningListeners.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/logging/LoggerAdapterTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/resources/IndexedResourceBundleTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/xml/MarshallerPoolTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/xml/NilReasonTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/xml/ReferenceResolverMock.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/xml/ValueConverterTest.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/xml/XLinkTest.java

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/AngleConverterTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/AngleConverterTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/AngleConverterTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/AngleConverterTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -37,6 +37,7 @@ public final strictfp class AngleConvert
      * Tests conversions to {@link Double}.
      */
     @Test
+    @SuppressWarnings("UnnecessaryBoxing")
     public void testDouble() {
         final ObjectConverter<Angle,Double> c1 = AngleConverter.INSTANCE;
         final ObjectConverter<Double,Angle> c2 = AngleConverter.Inverse.INSTANCE;

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/ConverterRegistryTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/ConverterRegistryTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/ConverterRegistryTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/ConverterRegistryTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -82,7 +82,7 @@ public final strictfp class ConverterReg
      * Ensures that the current converters is also registered for the given target class.
      * The given target may not be the same than the {@link ObjectConverter#getTargetClass()}.
      *
-     * @param targetClass The target class to ensure that the converter is registered for.
+     * @param  targetClass  the target class to ensure that the converter is registered for.
      */
     private void assertSameConverterForTarget(final Class<?> targetClass) {
         final ObjectConverter<?,?> converter = converters.peekLast();
@@ -101,7 +101,7 @@ public final strictfp class ConverterReg
     /**
      * Ensures that there is no converter for the given target.
      *
-     * @param targetClass The target which should not have any registered converter.
+     * @param  targetClass  the target which should not have any registered converter.
      */
     private void assertNoConverterForTarget(final Class<?> targetClass) {
         final ObjectConverter<?,?> converter = converters.peekLast();
@@ -123,7 +123,7 @@ public final strictfp class ConverterReg
     /**
      * Ensures that the converter for the given target is an {@link IdentityConverter}.
      *
-     * @param targetClass The target for which an identity converter should be obtained.
+     * @param  targetClass  the target for which an identity converter should be obtained.
      */
     private void assertIdentityForTarget(final Class<?> targetClass) {
         final ObjectConverter<?,?> converter = converters.peekLast();
@@ -136,10 +136,9 @@ public final strictfp class ConverterReg
     }
 
     /**
-     * Asserts that the converter to the given target is a fallback having the given string
-     * representation.
+     * Asserts that the converter to the given target is a fallback having the given string representation.
      *
-     * @param expected The expected string representation of the fallback.
+     * @param  expected  the expected string representation of the fallback.
      */
     private void assertFallbackEquals(final Class<?> target, final String expected) {
         ObjectConverter<?,?> converter = converters.peekLast();
@@ -170,7 +169,7 @@ public final strictfp class ConverterReg
         assertMultilinesEquals("After StringConverter.Short",
             "ConverterRegistry\n" +
             "��\u251c\u2500Short���������\u2190�String\n" +
-            "��\u251c\u2500Number��������\u2190�String\n" +  // Same instance than above, applied to Number target.
+            "��\u251c\u2500Number��������\u2190�String\n" +                // Same instance than above, applied to Number target.
             "��\u2502���\u2514\u2500Short�����\u2190�String\n" +
             "��\u251c\u2500Object��������\u2190�String\n" +
             "��\u251c\u2500Comparable����\u2190�String\n" +
@@ -198,7 +197,7 @@ public final strictfp class ConverterReg
             "��\u251c\u2500Comparable����\u2190�String\n" +
             "��\u251c\u2500Serializable��\u2190�String\n" +
             "��\u251c\u2500Long����������\u2190�String\n" +
-            "��\u2514\u2500Number��������\u2190�String\n" + // The FallbackConverter, which replaced the previous.
+            "��\u2514\u2500Number��������\u2190�String\n" +                // The FallbackConverter, which replaced the previous.
             "������\u251c\u2500Short�����\u2190�String\n" +
             "������\u2514\u2500Long������\u2190�String\n", registry.toString());
         /*
@@ -243,7 +242,7 @@ public final strictfp class ConverterReg
             "��\u251c\u2500Serializable��\u2190�String\n" +
             "��\u251c\u2500Long����������\u2190�String\n" +
             "��\u251c\u2500Boolean�������\u2190�String\n" +
-            "��\u2514\u2500Number��������\u2190�String\n", registry.toString()); // Replaced the FallbackConverter.
+            "��\u2514\u2500Number��������\u2190�String\n", registry.toString());       // Replaced the FallbackConverter.
         /*
          * Adds String \u2190 Float
          * Expected side-effect: none

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/FallbackConverterTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/FallbackConverterTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/FallbackConverterTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/FallbackConverterTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -154,9 +154,9 @@ public final strictfp class FallbackConv
     /**
      * Converts the given value and compares the result with the expected one.
      *
-     * @param  converter The converter to use.
-     * @param  expected  The expected result, or {@code null} if the conversion is expected to fail.
-     * @param  value     The value to convert.
+     * @param  converter  the converter to use.
+     * @param  expected   the expected result, or {@code null} if the conversion is expected to fail.
+     * @param  value      the value to convert.
      * @throws UnconvertibleObjectException if an exception was not expected but occurred.
      */
     private static void assertConvertedEquals(final ObjectConverter<String,?> converter,

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/NumberConverterTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/NumberConverterTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/NumberConverterTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/NumberConverterTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -37,6 +37,7 @@ import static org.apache.sis.test.Assert
  * @module
  */
 @DependsOn(SystemRegistryTest.class)
+@SuppressWarnings("UnnecessaryBoxing")
 public final strictfp class NumberConverterTest extends TestCase {
     /**
      * Creates a {@link NumberConverter} for the given source and target classes.

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/PathConverterTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/PathConverterTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/PathConverterTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/PathConverterTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -80,7 +80,7 @@ public final strictfp class PathConverte
     /**
      * Tests conversions from File to URI values.
      *
-     * @throws URISyntaxException Should never happen.
+     * @throws URISyntaxException if this test uses a malformed URI.
      */
     @Test
     @PlatformDependent
@@ -94,7 +94,7 @@ public final strictfp class PathConverte
     /**
      * Tests conversions from File to URL values.
      *
-     * @throws MalformedURLException Should never happen.
+     * @throws MalformedURLException if this test uses a malformed URL.
      */
     @Test
     @PlatformDependent
@@ -108,7 +108,7 @@ public final strictfp class PathConverte
     /**
      * Tests conversions from URI to string values.
      *
-     * @throws URISyntaxException Should never happen.
+     * @throws URISyntaxException if this test uses a malformed URI.
      */
     @Test
     public void testURI_String() throws URISyntaxException {
@@ -120,8 +120,8 @@ public final strictfp class PathConverte
     /**
      * Tests conversions from URI to URL values.
      *
-     * @throws MalformedURLException Should never happen.
-     * @throws URISyntaxException Should never happen.
+     * @throws MalformedURLException if this test uses a malformed URL.
+     * @throws URISyntaxException if this test uses a malformed URI.
      */
     @Test
     public void testURI_URL() throws MalformedURLException, URISyntaxException {
@@ -133,7 +133,7 @@ public final strictfp class PathConverte
     /**
      * Tests conversions from URI to File values.
      *
-     * @throws URISyntaxException Should never happen.
+     * @throws URISyntaxException if this test uses a malformed URI.
      */
     @Test
     @PlatformDependent
@@ -147,7 +147,7 @@ public final strictfp class PathConverte
     /**
      * Tests conversions from URL to string values.
      *
-     * @throws MalformedURLException Should never happen.
+     * @throws MalformedURLException if this test uses a malformed URL.
      */
     @Test
     public void testURL_String() throws MalformedURLException {
@@ -159,8 +159,8 @@ public final strictfp class PathConverte
     /**
      * Tests conversions from URL to URI values.
      *
-     * @throws MalformedURLException Should never happen.
-     * @throws URISyntaxException Should never happen.
+     * @throws MalformedURLException if this test uses a malformed URL.
+     * @throws URISyntaxException if this test uses a malformed URI.
      */
     @Test
     public void testURL_URI() throws MalformedURLException, URISyntaxException {
@@ -172,7 +172,7 @@ public final strictfp class PathConverte
     /**
      * Tests conversions from URL to File values.
      *
-     * @throws MalformedURLException Should never happen.
+     * @throws MalformedURLException if this test uses a malformed URL.
      */
     @Test
     @PlatformDependent

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/StringConverterTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/StringConverterTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/StringConverterTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/converter/StringConverterTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -17,14 +17,17 @@
 package org.apache.sis.internal.converter;
 
 import java.util.Locale;
-import java.io.File;
 import java.math.BigDecimal;
 import java.math.BigInteger;
+import java.io.File;
 import java.net.URI;
 import java.net.URL;
 import java.net.URISyntaxException;
 import java.net.MalformedURLException;
+import java.nio.file.Path;
+import java.nio.file.Paths;
 import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 import java.lang.annotation.ElementType;
 import javax.measure.Unit;
 import org.opengis.util.InternationalString;
@@ -41,11 +44,6 @@ import org.junit.Test;
 
 import static org.apache.sis.test.Assert.*;
 
-// Branch-dependent imports
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.nio.charset.StandardCharsets;
-
 
 /**
  * Tests the various {@link StringConverter} implementations.
@@ -55,6 +53,7 @@ import java.nio.charset.StandardCharsets
  * @version 0.8
  * @module
  */
+@SuppressWarnings("UnnecessaryBoxing")
 @DependsOn(org.apache.sis.measure.AngleTest.class)
 public final strictfp class StringConverterTest extends TestCase {
     /**

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/ModifiableIdentifierMapTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/ModifiableIdentifierMapTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/ModifiableIdentifierMapTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/ModifiableIdentifierMapTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -57,8 +57,8 @@ public final strictfp class ModifiableId
      * compare with the map content. This is needed because the "special case rules" cause the {@code "href"}
      * identifier to be replaced by {@code "xlink:href"}.
      *
-     * @param  expected The expected content.
-     * @return The map to compare with the expected content.
+     * @param  expected  the expected content.
+     * @return the map to compare with the expected content.
      */
     private static void assertMapEquals(String expected, final Map<Citation,String> map) {
         final int start = expected.indexOf(TO_REPLACE);

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/XmlUtilitiesTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/XmlUtilitiesTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/XmlUtilitiesTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/XmlUtilitiesTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -40,7 +40,7 @@ public final strictfp class XmlUtilities
      * Tests the {@link XmlUtilities#toXML} method.
      * This test arbitrarily uses the CET timezone.
      *
-     * @throws DatatypeConfigurationException Should never happen.
+     * @throws DatatypeConfigurationException if the XML factory can not be created.
      */
     @Test
     public void testToXML() throws DatatypeConfigurationException {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeMock.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeMock.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeMock.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeMock.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -55,8 +55,8 @@ final strictfp class PropertyTypeMock ex
      * If this {@code PropertyTypeMock} class was not for testing purpose only,
      * this method would be invoked by JAXB at marshalling time.
      *
-     * @param  metadata The pseudo-metadata element to wrap.
-     * @return A {@code PropertyType} wrapping the given the metadata element.
+     * @param  metadata  the pseudo-metadata element to wrap.
+     * @return a {@code PropertyType} wrapping the given the metadata element.
      */
     @Override
     protected PropertyTypeMock wrap(final Result metadata) {
@@ -88,11 +88,13 @@ final strictfp class PropertyTypeMock ex
         }
 
         /** Returns the identifiers as a modifiable list. */
+        @SuppressWarnings("ReturnOfCollectionOrArrayField")
         @Override public Collection<? extends Identifier> getIdentifiers() {
             return identifiers;
         }
 
         /** Returns a view of the identifiers as a map. */
+        @SuppressWarnings("ReturnOfCollectionOrArrayField")
         @Override public IdentifierMap getIdentifierMap() {
             return map;
         }

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gco/PropertyTypeTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -73,7 +73,7 @@ public final strictfp class PropertyType
     /**
      * Tests the construction of a plain property (no identifier).
      *
-     * @throws Exception Should never happen.
+     * @throws Exception if an error occurred during (un)marshalling.
      */
     @Test
     public void testWithNoReference() throws Exception {
@@ -86,7 +86,7 @@ public final strictfp class PropertyType
      * Tests the construction of an object containing {@code UUID} reference,
      * but in a context where the user didn't gave us the authorization to use it.
      *
-     * @throws Exception Should never happen.
+     * @throws Exception if an error occurred during (un)marshalling.
      */
     @Test
     @DependsOnMethod("testWithUUID")
@@ -98,7 +98,7 @@ public final strictfp class PropertyType
      * Tests the construction of an object containing a {@link UUID}.
      * The {@code UUID} is allowed to replace the object definition in the XML to be marshalled.
      *
-     * @throws Exception Should never happen.
+     * @throws Exception if an error occurred during (un)marshalling.
      */
     @Test
     @DependsOnMethod("testWithNoReference")
@@ -142,7 +142,7 @@ public final strictfp class PropertyType
      * Tests the construction of an object containing a {@link XLink} while keeping the metadata.
      * The {@code XLink} is provided for information purpose.
      *
-     * @throws Exception Should never happen.
+     * @throws Exception if an error occurred during (un)marshalling.
      */
     @Test
     @DependsOnMethod("testWithXLink")
@@ -154,7 +154,7 @@ public final strictfp class PropertyType
      * Tests the construction of an object containing a {@link XLink} replacing the metadata.
      * The {@code XLink} is allowed to replace the object definition in the XML to be marshalled.
      *
-     * @throws Exception Should never happen.
+     * @throws Exception if an error occurred during (un)marshalling.
      */
     @Test
     @DependsOnMethod("testWithNoReference")

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gmd/LanguageCodeTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gmd/LanguageCodeTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gmd/LanguageCodeTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gmd/LanguageCodeTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -75,7 +75,7 @@ public final strictfp class LanguageCode
      * Creates the XML (un)marshaller pool to be shared by all test methods.
      * The (un)marshallers locale and timezone will be set to fixed values.
      *
-     * @throws JAXBException If an error occurred while creating the pool.
+     * @throws JAXBException if an error occurred while creating the pool.
      *
      * @see #disposeMarshallerPool()
      */
@@ -108,7 +108,7 @@ public final strictfp class LanguageCode
      *   </gmd:MD_Metadata>
      * }
      *
-     * @param languageCode The XML fragment to write inside the {@code <gmd:language>} element.
+     * @param  languageCode  the XML fragment to write inside the {@code <gmd:language>} element.
      */
     private static String getMetadataXML(final String languageCode) {
         return "<gmd:MD_Metadata" +
@@ -124,7 +124,7 @@ public final strictfp class LanguageCode
      * Tests marshalling of {@code <gmd:LanguageCode>}.
      * The result shall be as documented in {@link #testLanguageCode()}.
      *
-     * @throws JAXBException Should never happen.
+     * @throws JAXBException if an error occurs while marshalling the language.
      *
      * @see #testMarshallCharacterString()
      */
@@ -148,7 +148,7 @@ public final strictfp class LanguageCode
      *   </gmd:MD_Metadata>
      * }
      *
-     * @throws JAXBException Should never happen.
+     * @throws JAXBException if an error occurs while unmarshalling the language.
      *
      * @see #testMarshallLanguageCode()
      */
@@ -172,7 +172,7 @@ public final strictfp class LanguageCode
      *   </gmd:MD_Metadata>
      * }
      *
-     * @throws JAXBException Should never happen.
+     * @throws JAXBException if an error occurs while unmarshalling the language.
      */
     @Test
     @DependsOnMethod("testLanguageCode")
@@ -188,7 +188,7 @@ public final strictfp class LanguageCode
      * Tests marshalling of {@code <gco:CharacterString>}, which require explicit marshaller configuration.
      * The result shall be as documented in {@link #testCharacterString()}.
      *
-     * @throws JAXBException Should never happen.
+     * @throws JAXBException if an error occurs while marshalling the language.
      *
      * @see #testMarshallLanguageCode()
      */
@@ -214,7 +214,7 @@ public final strictfp class LanguageCode
      *   </gmd:MD_Metadata>
      * }
      *
-     * @throws JAXBException Should never happen.
+     * @throws JAXBException if an error occurs while unmarshalling the language.
      */
     @Test
     public void testCharacterString() throws JAXBException {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gml/TimePeriodTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gml/TimePeriodTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gml/TimePeriodTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/jaxb/gml/TimePeriodTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -65,7 +65,7 @@ public final strictfp class TimePeriodTe
      * Creates the XML (un)marshaller pool to be shared by all test methods.
      * The (un)marshallers locale and timezone will be set to fixed values.
      *
-     * @throws JAXBException If an error occurred while creating the pool.
+     * @throws JAXBException if an error occurred while creating the pool.
      *
      * @see #disposeMarshallerPool()
      */
@@ -89,8 +89,8 @@ public final strictfp class TimePeriodTe
     /**
      * Tests time instant. The test is executed using an arbitrary locale and timezone.
      *
-     * @throws JAXBException If an error occurred while marshalling.
-     * @throws DatatypeConfigurationException Should never happen.
+     * @throws JAXBException if an error occurred while marshalling.
+     * @throws DatatypeConfigurationException should never happen.
      */
     @Test
     public void testTimeInstant() throws JAXBException, DatatypeConfigurationException {
@@ -116,7 +116,7 @@ public final strictfp class TimePeriodTe
      * Tests a time period using the GML 2 syntax.
      * The test is executed using an arbitrary locale and timezone.
      *
-     * @throws JAXBException If an error occurred while marshalling.
+     * @throws JAXBException if an error occurred while marshalling.
      */
     @Test
     public void testPeriodGML2() throws JAXBException {
@@ -143,7 +143,7 @@ public final strictfp class TimePeriodTe
      * implementation of {@link #testPeriodGML2()} and {@link #testPeriodGML3()}.
      * The test is executed using an arbitrary locale and timezone.
      *
-     * @param expected The expected string.
+     * @param  expected  the expected string.
      */
     private void testPeriod(final TimePeriodBound begin, final TimePeriodBound end,
             final String expected, final boolean verifyValues) throws JAXBException
@@ -168,7 +168,7 @@ public final strictfp class TimePeriodTe
      * Tests a time period using the GML 3 syntax.
      * The test is executed using an arbitrary locale and timezone.
      *
-     * @throws JAXBException If an error occurred while marshalling.
+     * @throws JAXBException if an error occurred while marshalling.
      */
     @Test
     public void testPeriodGML3() throws JAXBException {
@@ -186,7 +186,7 @@ public final strictfp class TimePeriodTe
      * Same test than {@link #testPeriodGML3()}, but with simplified date format (omit the hours and timezone)
      * The test is executed using an arbitrary locale and timezone.
      *
-     * @throws JAXBException If an error occurred while marshalling.
+     * @throws JAXBException if an error occurred while marshalling.
      */
     @Test
     public void testSimplifiedPeriodGML3() throws JAXBException {
@@ -204,7 +204,7 @@ public final strictfp class TimePeriodTe
      * Same test than {@link #testSimplifiedPeriodGML3()}, but without beginning boundary.
      * The test is executed using an arbitrary locale and timezone.
      *
-     * @throws JAXBException If an error occurred while marshalling.
+     * @throws JAXBException if an error occurred while marshalling.
      */
     @Test
     public void testBeforePeriodGML3() throws JAXBException {
@@ -222,7 +222,7 @@ public final strictfp class TimePeriodTe
      * Same test than {@link #testSimplifiedPeriodGML3()}, but without end boundary.
      * The test is executed using an arbitrary locale and timezone.
      *
-     * @throws JAXBException If an error occurred while marshalling.
+     * @throws JAXBException if an error occurred while marshalling.
      */
     @Test
     public void testAfterPeriodGML3() throws JAXBException {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/system/ReferenceQueueConsumerTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/system/ReferenceQueueConsumerTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/system/ReferenceQueueConsumerTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/system/ReferenceQueueConsumerTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -41,7 +41,7 @@ public final strictfp class ReferenceQue
      * <p>This method is not a test of the SIS library, but rather a verification of our JDK
      * library interpretation.</p>
      *
-     * @throws InterruptedException This is the excepted exception.
+     * @throws InterruptedException this is the excepted exception.
      */
     @Test(expected=InterruptedException.class)
     public void verifyInterruptAssumption() throws InterruptedException {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/test/XMLComparatorTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/test/XMLComparatorTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/test/XMLComparatorTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/test/XMLComparatorTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -35,7 +35,7 @@ public final strictfp class XMLComparato
     /**
      * Tests the {@link XMLComparator#ignoredAttributes} and {@link XMLComparator#ignoredNodes} sets.
      *
-     * @throws Exception Shall never happen.
+     * @throws Exception if an error occurred while reading the XML.
      */
     @Test
     public void testIgnore() throws Exception {
@@ -81,7 +81,7 @@ public final strictfp class XMLComparato
      *
      * @see javax.xml.parsers.DocumentBuilderFactory#setNamespaceAware(boolean)
      *
-     * @throws Exception Shall never happen.
+     * @throws Exception if an error occurred while reading the XML.
      */
     @Test
     public void testNamespaceAware() throws Exception {
@@ -120,8 +120,8 @@ public final strictfp class XMLComparato
      * invoked in order to test that the comparator rightly detected an error that we
      * were expected to detect.
      *
-     * @param message The message for JUnit if the comparison does not fail.
-     * @param cmp The comparator on which to invoke {@link XMLComparator#compare()}.
+     * @param  message  the message for JUnit if the comparison does not fail.
+     * @param  cmp      the comparator on which to invoke {@link XMLComparator#compare()}.
      */
     private static void assertFail(final String message, final XMLComparator cmp) {
         try {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/CitationsTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/CitationsTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/CitationsTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/CitationsTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -147,7 +147,7 @@ public final strictfp class CitationsTes
 
         @Override
         public String getName() {
-            return "TheProj4Space";  // Intentionally a very different name than "Proj4".
+            return "TheProj4Space";         // Intentionally a very different name than "Proj4".
         }
     }
 }

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/DoubleDoubleTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/DoubleDoubleTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/DoubleDoubleTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/internal/util/DoubleDoubleTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -107,9 +107,9 @@ public final strictfp class DoubleDouble
      * Asserts that the result of some operation is equals to the expected value,
      * up to a tolerance value determined by the extended arithmetic precision.
      *
-     * @param expected The expected value, computed using {@code BigInteger} arithmetic.
-     * @param actual The actual value.
-     * @param ef Multiplication factor for the tolerance threshold.
+     * @param expected  the expected value, computed using {@code BigInteger} arithmetic.
+     * @param actual    the actual value.
+     * @param ef        multiplication factor for the tolerance threshold.
      */
     private static void assertExtendedEquals(final BigDecimal expected, final DoubleDouble actual, final double ef) {
         final BigDecimal value = toBigDecimal(actual);
@@ -352,7 +352,7 @@ public final strictfp class DoubleDouble
      *   <li>The arrays do not contains an entry for a value that could be omitted.</li>
      * </ul>
      *
-     * @throws ReflectiveOperationException Should never happen.
+     * @throws ReflectiveOperationException if this test uses wrong field names.
      */
     @Test
     public void testArraysConsistency() throws ReflectiveOperationException {
@@ -432,7 +432,7 @@ public final strictfp class DoubleDouble
                 case 0:  dd = DoubleDouble.createRadiansToDegrees(); break;
                 case 1:  dd = DoubleDouble.createDegreesToRadians(); break;
                 case 2:  dd = DoubleDouble.createSecondsToRadians(); break;
-                default: return; // Test done.
+                default: return;                                             // Test done.
             }
             assertEquals(DoubleDouble.errorForWellKnownValue(dd.value), dd.error, STRICT);
         }

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/AppenderTestCase.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/AppenderTestCase.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/AppenderTestCase.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/AppenderTestCase.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -61,16 +61,16 @@ public abstract class AppenderTestCase e
      * Implementations shall write in the {@link #appender}, then test
      * the result with {@link #assertOutputEquals(String)}.
      *
-     * @param  lineSeparator The line separator to use.
-     * @throws IOException Should never happen.
+     * @param  lineSeparator  the line separator to use.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     abstract void run(final String lineSeparator) throws IOException;
 
     /**
      * Ensures that the buffer content is equals to the given string.
      *
-     * @param  expected The expected content.
-     * @throws IOException Should never happen.
+     * @param  expected  the expected content.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     final void assertOutputEquals(final String expected) throws IOException {
         IO.flush(appender);
@@ -91,7 +91,7 @@ public abstract class AppenderTestCase e
      * Tests a sequence of {@link Appendable#append(char)} calls,
      * with Unix line terminators mixed in.
      *
-     * @throws IOException Should never happen.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     @Test
     public void testCharsWithLF() throws IOException {
@@ -103,7 +103,7 @@ public abstract class AppenderTestCase e
      * Tests a few {@link Appendable#append(CharSequence)} calls,
      * with Unix line terminators in the sequences.
      *
-     * @throws IOException Should never happen.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     @Test
     @DependsOnMethod("testCharsWithLF")
@@ -115,7 +115,7 @@ public abstract class AppenderTestCase e
      * Tests a sequence of {@link Appendable#append(char)} calls,
      * with CR line terminators mixed in.
      *
-     * @throws IOException Should never happen.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     @Test
     @DependsOnMethod("testCharsWithLF")
@@ -128,7 +128,7 @@ public abstract class AppenderTestCase e
      * Tests a few {@link Appendable#append(CharSequence)} calls,
      * with CR line terminators in the sequences.
      *
-     * @throws IOException Should never happen.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     @Test
     @DependsOnMethod("testCharsWithCR")
@@ -140,7 +140,7 @@ public abstract class AppenderTestCase e
      * Tests a sequence of {@link Appendable#append(char)} calls,
      * with Windows line terminators mixed in.
      *
-     * @throws IOException Should never happen.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     @Test
     @DependsOnMethod("testCharsWithCR")
@@ -153,7 +153,7 @@ public abstract class AppenderTestCase e
      * Tests a few {@link Appendable#append(CharSequence)} calls,
      * with Windows line terminators in the sequences.
      *
-     * @throws IOException Should never happen.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     @Test
     @DependsOnMethod("testCharsWithCRLF")
@@ -165,7 +165,7 @@ public abstract class AppenderTestCase e
      * Tests a sequence of {@link Appendable#append(char)} calls,
      * with Unicode line terminators mixed in.
      *
-     * @throws IOException Should never happen.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     @Test
     @DependsOnMethod("testCharsWithLF")
@@ -178,7 +178,7 @@ public abstract class AppenderTestCase e
      * Tests a few {@link Appendable#append(CharSequence)} calls,
      * with Unicode line terminators in the sequences.
      *
-     * @throws IOException Should never happen.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     @Test
     @DependsOnMethod("testCharsWithUnicode")
@@ -190,7 +190,7 @@ public abstract class AppenderTestCase e
      * Tests a few {@link java.io.Writer#write(String)} calls,
      * with Unix line terminators in the sequences.
      *
-     * @throws IOException Should never happen.
+     * @throws IOException should never happen since the tests will write in a buffer.
      */
     public void testSequencesToWriter() throws IOException {
         appender = IO.asWriter(appender);

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/EchoAppendable.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/EchoAppendable.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/EchoAppendable.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/EchoAppendable.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -41,8 +41,8 @@ public class EchoAppendable extends Appe
     /**
      * Creates a copy writer for the specified streams or buffers.
      *
-     * @param main The main stream or buffer.
-     * @param echo The echo stream or buffer.
+     * @param main  the main stream or buffer.
+     * @param echo  the echo stream or buffer.
      */
     public EchoAppendable(final Appendable main, final Appendable echo) {
         super(main);
@@ -52,9 +52,9 @@ public class EchoAppendable extends Appe
     /**
      * Writes a single character.
      *
-     * @param  c The character to append.
+     * @param  c  the character to append.
      * @return {@code this}.
-     * @throws IOException If an I/O error occurs.
+     * @throws IOException if an I/O error occurs.
      */
     @Override
     public Appendable append(final char c) throws IOException {
@@ -66,9 +66,9 @@ public class EchoAppendable extends Appe
     /**
      * Writes a character sequence.
      *
-     * @param  sequence The character sequence to be written.
+     * @param  sequence  the character sequence to be written.
      * @return {@code this}.
-     * @throws IOException If an I/O error occurs.
+     * @throws IOException if an I/O error occurs.
      */
     @Override
     public Appendable append(final CharSequence sequence) throws IOException {
@@ -80,11 +80,11 @@ public class EchoAppendable extends Appe
     /**
      * Writes a portion of a character sequence.
      *
-     * @param  sequence The character sequence to be written.
-     * @param  start    Index from which to start reading characters.
-     * @param  end      Index of the character following the last character to read.
+     * @param  sequence  the character sequence to be written.
+     * @param  start     index from which to start reading characters.
+     * @param  end       index of the character following the last character to read.
      * @return {@code this}.
-     * @throws IOException If an I/O error occurs.
+     * @throws IOException if an I/O error occurs.
      */
     @Override
     public Appendable append(final CharSequence sequence, final int start, final int end) throws IOException {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LeftMarginTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LeftMarginTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LeftMarginTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LeftMarginTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -52,8 +52,8 @@ public final strictfp class LeftMarginTe
     /**
      * Runs the test using an extract from Arthur RIMBAUD (1854-1891), "Le bateau ivre".
      *
-     * @param  lineSeparator The line separator to use in the test strings.
-     * @throws IOException Should never happen, since we are writing in a {@link StringBuilder}.
+     * @param  lineSeparator  the line separator to use in the test strings.
+     * @throws IOException should never happen, since we are writing in a {@link StringBuilder}.
      */
     @Override
     void run(final String lineSeparator) throws IOException {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LineAppenderTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LineAppenderTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LineAppenderTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/LineAppenderTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -57,8 +57,8 @@ public strictfp class LineAppenderTest e
     /**
      * Runs the test.
      *
-     * @param  lineSeparator The line separator to use in the test strings.
-     * @throws IOException Should never happen, since we are writing in a {@link StringBuilder}.
+     * @param  lineSeparator  the line separator to use in the test strings.
+     * @throws IOException should never happen, since we are writing in a {@link StringBuilder}.
      */
     @Override
     void run(final String lineSeparator) throws IOException {
@@ -79,7 +79,7 @@ public strictfp class LineAppenderTest e
      * Tests a call to {@link LineAppender#flush()} interleaved between two lines,
      * where the second line begin with a tabulation.
      *
-     * @throws IOException Should never happen, since we are writing in a {@link StringBuilder}.
+     * @throws IOException should never happen, since we are writing in a {@link StringBuilder}.
      *
      * @see <a href="https://issues.apache.org/jira/browse/SIS-140">SIS-140</a>
      */

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/SingleCharAppendable.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/SingleCharAppendable.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/SingleCharAppendable.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/SingleCharAppendable.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -33,7 +33,7 @@ final class SingleCharAppendable extends
     /**
      * Constructs a {@code SingleCharAppendable} object delegating to the given {@code Appendable}.
      *
-     * @param out The underlying stream or buffer.
+     * @param  out  the underlying stream or buffer.
      */
     public SingleCharAppendable(final Appendable out) {
         super(out);
@@ -51,10 +51,10 @@ final class SingleCharAppendable extends
     /**
      * Writes a portion of a character sequence.
      *
-     * @param  sequence The character sequence to be written.
-     * @param  start    Index from which to start reading characters.
-     * @param  end      Index of the character following the last character to read.
-     * @throws IOException If an I/O error occurs.
+     * @param  sequence  the character sequence to be written.
+     * @param  start     index from which to start reading characters.
+     * @param  end       index of the character following the last character to read.
+     * @throws IOException if an I/O error occurs.
      */
     @Override
     public Appendable append(final CharSequence sequence, int start, final int end) throws IOException {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TableAppenderTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TableAppenderTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TableAppenderTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TableAppenderTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -57,9 +57,10 @@ public final strictfp class TableAppende
     void run(String lineSeparator) throws IOException {
         final Appendable out = appender;
         table.nextLine('\u2550');
-
-        // r.e.d. = Equatorial diameter Measured relative to the Earth.
-        // Source: "Planet" on wikipedia on July 25, 2008.
+        /*
+         * r.e.d. = Equatorial diameter Measured relative to the Earth.
+         * Source: "Planet" on wikipedia on July 25, 2008.
+         */
         assertSame(out, out.append("English\tFrench\tr.e.d." + lineSeparator));
         table.appendHorizontalSeparator();
         assertSame(out, out.append("Mercury\tMercure\t0.382" + lineSeparator));
@@ -107,7 +108,7 @@ public final strictfp class TableAppende
      * more easily, without having to deal with {@link IOException}.
      */
     @Test
-    public void testToString() { // NO throws IOException
+    public void testToString() {                // NO throws IOException
         /*
          * First, ensure that TableAppender.toString() does not
          * mess with the content of user-supplied Appendable.
@@ -130,8 +131,8 @@ public final strictfp class TableAppende
     /**
      * Helper method for {@link #testToString()}.
      *
-     * @param table    Where to format the table.
-     * @param expected The expected string representation of the formatted table.
+     * @param  table     where to format the table.
+     * @param  expected  the expected string representation of the formatted table.
      */
     private static void testToString(final TableAppender table, final String expected) {
         table.nextLine('\u2550');

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TabulationExpansionTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TabulationExpansionTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TabulationExpansionTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/TabulationExpansionTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -47,8 +47,8 @@ public final strictfp class TabulationEx
     /**
      * Runs the test.
      *
-     * @param  lineSeparator The line separator to use in the test strings.
-     * @throws IOException Should never happen, since we are writing in a {@link StringBuilder}.
+     * @param  lineSeparator  the line separator to use in the test strings.
+     * @throws IOException should never happen, since we are writing in a {@link StringBuilder}.
      */
     @Override
     void run(final String lineSeparator) throws IOException {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/WordWrapTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/WordWrapTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/WordWrapTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/io/WordWrapTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -59,8 +59,8 @@ public strictfp class WordWrapTest exten
      * Runs the test using an extract from �mile Nelligan (1879-1941)
      * with soft hyphen and X3.64 sequences added.
      *
-     * @param  lineSeparator The line separator to use in the test strings.
-     * @throws IOException Should never happen, since we are writing in a {@link StringBuilder}.
+     * @param  lineSeparator  the line separator to use in the test strings.
+     * @throws IOException should never happen, since we are writing in a {@link StringBuilder}.
      */
     @Override
     void run(final String lineSeparator) throws IOException {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/DecimalFunctionsTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/DecimalFunctionsTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/DecimalFunctionsTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/DecimalFunctionsTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -180,8 +180,8 @@ public final strictfp class DecimalFunct
         assertEquals(1, fractionDigitsForDelta(0.100, true));
         assertEquals(1, fractionDigitsForDelta(0.125, true));
         assertEquals(1, fractionDigitsForDelta(0.949, true));
-        assertEquals(2, fractionDigitsForDelta(0.994, true)); // Special case
-        assertEquals(3, fractionDigitsForDelta(0.999, true)); // Special case
+        assertEquals(2, fractionDigitsForDelta(0.994, true));           // Special case
+        assertEquals(3, fractionDigitsForDelta(0.999, true));           // Special case
 
         assertEquals( 0, fractionDigitsForDelta(  1.0, true));
         assertEquals( 0, fractionDigitsForDelta(  1.9, true));
@@ -189,24 +189,24 @@ public final strictfp class DecimalFunct
         assertEquals(-1, fractionDigitsForDelta( 10.0, true));
         assertEquals(-1, fractionDigitsForDelta( 19.9, true));
         assertEquals(-1, fractionDigitsForDelta( 94.9, true));
-        assertEquals( 0, fractionDigitsForDelta( 99.0, true)); // Special case
+        assertEquals( 0, fractionDigitsForDelta( 99.0, true));          // Special case
         assertEquals(-2, fractionDigitsForDelta(100.0, true));
         assertEquals(-2, fractionDigitsForDelta(100.1, true));
-        assertEquals(-1, fractionDigitsForDelta(994.9, true)); // Special case
-        assertEquals(+1, fractionDigitsForDelta(999.9, true)); // Special case
+        assertEquals(-1, fractionDigitsForDelta(994.9, true));          // Special case
+        assertEquals(+1, fractionDigitsForDelta(999.9, true));          // Special case
         assertEquals(-3, fractionDigitsForDelta(1000,  true));
 
         // Tests values out of the POW10 array range.
         assertEquals(23,  fractionDigitsForDelta(1.0E-23,  true));
         assertEquals(23,  fractionDigitsForDelta(1.9E-23,  true));
         assertEquals(23,  fractionDigitsForDelta(9.1E-23,  true));
-        assertEquals(24,  fractionDigitsForDelta(9.6E-23,  true)); // Special case
+        assertEquals(24,  fractionDigitsForDelta(9.6E-23,  true));      // Special case
         assertEquals(300, fractionDigitsForDelta(1.1E-300, true));
 
         assertEquals(-23,  fractionDigitsForDelta(1.0E+23,  true));
         assertEquals(-23,  fractionDigitsForDelta(1.9E+23,  true));
         assertEquals(-23,  fractionDigitsForDelta(9.1E+23,  true));
-        assertEquals(-22,  fractionDigitsForDelta(9.6E+23,  true)); // Special case
+        assertEquals(-22,  fractionDigitsForDelta(9.6E+23,  true));     // Special case
         assertEquals(-300, fractionDigitsForDelta(1.1E+300, true));
 
         // Other cases.

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/PlaneTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/PlaneTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/PlaneTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/PlaneTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -42,7 +42,7 @@ public final strictfp class PlaneTest ex
      *
      * This method also verifies that the Pearson coefficient is close to 1.
      *
-     * @param tolerance The maximal difference allowed between the fitted and the original values.
+     * @param  tolerance  the maximal difference allowed between the fitted and the original values.
      */
     private static Plane assertFitEquals(final double tolerance, final double[] x, final double[] y, final double[] z) {
         final Plane plan = new Plane();
@@ -57,11 +57,11 @@ public final strictfp class PlaneTest ex
     /**
      * Returns an array of the given length filled with random values.
      *
-     * @param  rd     The random number generator to use.
-     * @param  length The desired array length.
-     * @param  offset The minimal value allowed in the returned array.
-     * @param  scale  The difference between the minimal and maximal allowed values.
-     * @return The array of random values.
+     * @param  rd      the random number generator to use.
+     * @param  length  the desired array length.
+     * @param  offset  the minimal value allowed in the returned array.
+     * @param  scale   the difference between the minimal and maximal allowed values.
+     * @return the array of random values.
      */
     private static double[] random(final Random rd, final int length, final double offset, final double scale) {
         final double[] x = new double[length];

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/StatisticsTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/StatisticsTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/StatisticsTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/math/StatisticsTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -73,7 +73,7 @@ public final strictfp class StatisticsTe
      */
     @Test
     public void testGaussian() {
-        final Random random = new Random(317780561); // See class javadoc.
+        final Random random = new Random(317780561);            // See class javadoc.
         final Statistics statistics = new Statistics(null);
         for (int i=0; i<10000; i++) {
             statistics.accept(random.nextGaussian());
@@ -192,7 +192,7 @@ public final strictfp class StatisticsTe
      */
     @Test
     public void testConcatenation() {
-        final Random random = new Random(429323868); // See class javadoc.
+        final Random random = new Random(429323868);            // See class javadoc.
         final Statistics global = new Statistics(null);
         final Statistics byBlock = new Statistics(null);
         for (int i=0; i<10; i++) {

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleFormatTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleFormatTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleFormatTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleFormatTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -187,7 +187,7 @@ public final strictfp class AngleFormatT
     /**
      * Tests the example provided in the {@link AngleFormat} javadoc.
      *
-     * @throws ParseException If a string can not be parsed.
+     * @throws ParseException if a string can not be parsed.
      */
     @Test
     @DependsOnMethod("testOptionalFields")
@@ -205,11 +205,11 @@ public final strictfp class AngleFormatT
     /**
      * Tests a single line of Javadoc examples.
      *
-     * @param f       The angle format to test.
-     * @param pattern The pattern to apply for the test.
-     * @param e1      The expected string value of 48.5.
-     * @param e2      The expected string value of -12.53125.
-     * @param eps     The tolerance for comparing the parsed value of {@code e2}.
+     * @param f        the angle format to test.
+     * @param pattern  the pattern to apply for the test.
+     * @param e1       the expected string value of 48.5.
+     * @param e2       the expected string value of -12.53125.
+     * @param eps      the tolerance for comparing the parsed value of {@code e2}.
      */
     private static void testExample(final AngleFormat f, final String pattern, final String e1, final String e2,
             final double eps) throws ParseException

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/AngleTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -104,7 +104,7 @@ public final strictfp class AngleTest ex
         assertEquals( 90, Latitude.clamp(Double.POSITIVE_INFINITY), 0);
         assertEquals(-90, Latitude.clamp(Double.NEGATIVE_INFINITY), 0);
         assertEquals(doubleToLongBits(+0.0), doubleToLongBits(Latitude.clamp(+0.0)));
-        assertEquals(doubleToLongBits(-0.0), doubleToLongBits(Latitude.clamp(-0.0))); // Sign shall be preserved.
+        assertEquals(doubleToLongBits(-0.0), doubleToLongBits(Latitude.clamp(-0.0)));       // Sign shall be preserved.
     }
 
     /**
@@ -117,11 +117,11 @@ public final strictfp class AngleTest ex
         assertEquals(-160, Longitude.normalize( 200), 0);
         assertEquals( 160, Longitude.normalize(-200), 0);
         assertEquals(-180, Longitude.normalize(-180), 0);
-        assertEquals(-180, Longitude.normalize( 180), 0); // Upper value shall be exclusive.
+        assertEquals(-180, Longitude.normalize( 180), 0);                            // Upper value shall be exclusive.
         assertEquals(NaN,  Longitude.normalize( NaN), 0);
         assertEquals(NaN,  Longitude.normalize(Double.POSITIVE_INFINITY), 0);
         assertEquals(NaN,  Longitude.normalize(Double.NEGATIVE_INFINITY), 0);
         assertEquals(doubleToLongBits(+0.0), doubleToLongBits(Longitude.normalize(+0.0)));
-        assertEquals(doubleToLongBits(-0.0), doubleToLongBits(Longitude.normalize(-0.0))); // Sign shall be preserved.
+        assertEquals(doubleToLongBits(-0.0), doubleToLongBits(Longitude.normalize(-0.0)));  // Sign shall be preserved.
     }
 }

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/FormattedCharacterIteratorTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/FormattedCharacterIteratorTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/FormattedCharacterIteratorTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/FormattedCharacterIteratorTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -130,7 +130,7 @@ public final strictfp class FormattedCha
      * with attributes. Built in a sub-class of {@link SimpleCharacterIterator} in
      * order to have access to the protected {@link #upper} field.
      */
-    @SuppressWarnings("serial")
+    @SuppressWarnings({"serial", "CloneableClassWithoutClone"})
     private static class LatitudeString extends SimpleCharacterIterator {
         LatitudeString() {
             super(LATITUDE_STRING);
@@ -213,19 +213,19 @@ public final strictfp class FormattedCha
                  */
                 if (!isInteger) {
                     if (index < 7) {
-                        startInteger = index;   // End of previous integer field.
-                        limitInteger = index+1; // Start of next integer field.
+                        startInteger = index;               // End of previous integer field.
+                        limitInteger = index+1;             // Start of next integer field.
                     } else {
-                        startInteger = 8;       // End of last integer field.
+                        startInteger = 8;                   // End of last integer field.
                     }
                 }
                 if (!isSeparator) {
-                    if (index < 8) limitSeparator = 8; // Start of next separator field.
-                    else           startSeparator = 9; // End of previous separator field.
+                    if (index < 8) limitSeparator = 8;      // Start of next separator field.
+                    else           startSeparator = 9;      // End of previous separator field.
                 }
                 if (!isFraction) {
-                    if (index < 9) limitFraction =  9; // Start of next fraction field.
-                    else           startFraction = 10; // End of previous fraction field.
+                    if (index < 9) limitFraction =  9;      // Start of next fraction field.
+                    else           startFraction = 10;      // End of previous fraction field.
                 }
             }
             final Map<Attribute,Object> attributes = it.getAttributes();

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/RangeTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/RangeTest.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/RangeTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/RangeTest.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -81,7 +81,7 @@ public final strictfp class RangeTest ex
      * <p>This test requires assertions to be enabled.</p>
      */
     @Test(expected = IllegalArgumentException.class)
-    @SuppressWarnings({"unchecked", "rawtypes"})
+    @SuppressWarnings({"unchecked", "rawtypes", "ResultOfObjectAllocationIgnored"})
     public void testConstructorErrors00() {
         assumeTrue(Range.class.desiredAssertionStatus());
         new Range(Double.class, "error", true, "blast", true);
@@ -96,7 +96,7 @@ public final strictfp class RangeTest ex
      * <p>This test requires assertions to be enabled.</p>
      */
     @Test(expected = IllegalArgumentException.class)
-    @SuppressWarnings({"unchecked", "rawtypes"})
+    @SuppressWarnings({"unchecked", "rawtypes", "ResultOfObjectAllocationIgnored"})
     public void testConstructorErrors01() {
         assumeTrue(Range.class.desiredAssertionStatus());
         new Range(String.class, 123.233, true, 8740.09, true);
@@ -229,6 +229,7 @@ public final strictfp class RangeTest ex
      * Tests the {@link Range#intersect(Range)} method.
      */
     @Test
+    @SuppressWarnings("UnnecessaryBoxing")
     public void testIntersection() {
         final Range<Integer> range1 = new Range<>(Integer.class, 1, true, 5, true);
         final Range<Integer> range2 = new Range<>(Integer.class, 4, true, 6, true);
@@ -256,6 +257,7 @@ public final strictfp class RangeTest ex
      * Tests the {@link Range#union(Range)} method.
      */
     @Test
+    @SuppressWarnings("UnnecessaryBoxing")
     public void testUnion() {
         final Range<Character> range1 = new Range<>(Character.class, 'a', true, 'f', true);
         final Range<Character> range2 = new Range<>(Character.class, 'd', true, 'h', true);
@@ -270,6 +272,7 @@ public final strictfp class RangeTest ex
      * Tests the {@link Range#union(Range)} method with disjoint ranges.
      */
     @Test
+    @SuppressWarnings("UnnecessaryBoxing")
     public void testDisjointUnion() {
         final Range<Character> range1 = new Range<>(Character.class, 'a', true, 'f', true);
         final Range<Character> range2 = new Range<>(Character.class, 'm', true, 'v', true);

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/AnnotationsTestCase.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/AnnotationsTestCase.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/AnnotationsTestCase.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/AnnotationsTestCase.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -106,9 +106,9 @@ public abstract strictfp class Annotatio
      * For example the implementation of the {@link org.opengis.metadata.citation.Citation}
      * interface is the {@link org.apache.sis.metadata.iso.citation.DefaultCitation} class.
      *
-     * @param  <T>  The type represented by the {@code type} argument.
-     * @param  type The GeoAPI interface (never a {@link CodeList} or {@link Enum} type).
-     * @return The SIS implementation for the given interface.
+     * @param  <T>   the type represented by the {@code type} argument.
+     * @param  type  the GeoAPI interface (never a {@link CodeList} or {@link Enum} type).
+     * @return the SIS implementation for the given interface.
      */
     protected abstract <T> Class<? extends T> getImplementation(Class<T> type);
 
@@ -146,9 +146,9 @@ public abstract strictfp class Annotatio
      * <p>In SIS implementation, most wrappers are also {@link javax.xml.bind.annotation.adapters.XmlAdapter}.
      * But this is not a requirement.</p>
      *
-     * @param  type The GeoAPI interface, {@link CodeList} or {@link Enum} type.
-     * @return The wrapper for the given type, or {@code null} if none.
-     * @throws ClassNotFoundException If a wrapper was expected but not found.
+     * @param  type  the GeoAPI interface, {@link CodeList} or {@link Enum} type.
+     * @return the wrapper for the given type, or {@code null} if none.
+     * @throws ClassNotFoundException if a wrapper was expected but not found.
      */
     protected abstract Class<?> getWrapperFor(Class<?> type) throws ClassNotFoundException;
 
@@ -170,10 +170,10 @@ public abstract strictfp class Annotatio
      * Returns the value of {@link #getWrapperFor(Class)} for the given class, or for a parent
      * of the given class if {@code getWrapperFor(Class)} threw {@code ClassNotFoundException}.
      *
-     * @param  type The GeoAPI interface, {@link CodeList} or {@link Enum} type.
-     * @return The wrapper for the given type. {@link WrapperClass#type} is {@code null} if
+     * @param  type  the GeoAPI interface, {@link CodeList} or {@link Enum} type.
+     * @return the wrapper for the given type. {@link WrapperClass#type} is {@code null} if
      *         no wrapper has been found.
-     * @throws ClassNotFoundException If a wrapper was expected but not found in the
+     * @throws ClassNotFoundException if a wrapper was expected but not found in the
      *         given type neither in any of the parent classes.
      */
     private WrapperClass getWrapperInHierarchy(final Class<?> type) throws ClassNotFoundException {
@@ -197,9 +197,9 @@ public abstract strictfp class Annotatio
      * Returns the XML type for an element of the given type. For example in ISO 19139,
      * the XML type of {@code CI_Citation} is {@code CI_Citation_Type}.
      *
-     * @param  type The GeoAPI interface.
-     * @param  impl The implementation class.
-     * @return The name of the XML type for the given element, or {@code null} if none.
+     * @param  type  the GeoAPI interface.
+     * @param  impl  the implementation class.
+     * @return the name of the XML type for the given element, or {@code null} if none.
      *
      * @see #testImplementationAnnotations()
      */
@@ -220,10 +220,10 @@ public abstract strictfp class Annotatio
      * <p>The prefix for the given namespace will be fetched by
      * {@link Namespaces#getPreferredPrefix(String, String)}.</p>
      *
-     * @param  impl The implementation class, {@link CodeList} or {@link Enum} type.
-     * @param  specification The specification that define the type, or {@code null} if unspecified.
-     * @return The expected namespace.
-     * @throws IllegalArgumentException If the given specification is unknown to this method.
+     * @param  impl           the implementation class, {@link CodeList} or {@link Enum} type.
+     * @param  specification  the specification that define the type, or {@code null} if unspecified.
+     * @return the expected namespace.
+     * @throws IllegalArgumentException if the given specification is unknown to this method.
      */
     protected String getExpectedNamespace(final Class<?> impl, final Specification specification) {
         switch (specification) {
@@ -248,9 +248,9 @@ public abstract strictfp class Annotatio
      * The default implementation returns {@link UML#identifier()}. Subclasses shall override this method
      * when mismatches are known to exist between the UML and XML element names.
      *
-     * @param  enclosing The GeoAPI interface which contains the property, or {@code null} if none.
-     * @param  uml The UML element for which to get the corresponding XML element name.
-     * @return The XML element name for the given UML element.
+     * @param  enclosing  the GeoAPI interface which contains the property, or {@code null} if none.
+     * @param  uml        the UML element for which to get the corresponding XML element name.
+     * @return the XML element name for the given UML element.
      */
     protected String getExpectedXmlElementName(final Class<?> enclosing, final UML uml) {
         return uml.identifier();
@@ -266,10 +266,10 @@ public abstract strictfp class Annotatio
      *   <li>The namespace is equals to the {@linkplain #getExpectedNamespace expected namespace}.</li>
      * </ul>
      *
-     * @param  namespace The namespace given by the {@code @XmlRootElement} or {@code @XmlElement} annotation.
-     * @param  impl      The implementation or wrapper class for which to get the package namespace.
-     * @param  uml       The {@code @UML} annotation, or {@code null} if none.
-     * @return The actual namespace (same as {@code namespace} if it was not {@value #DEFAULT}).
+     * @param  namespace  the namespace given by the {@code @XmlRootElement} or {@code @XmlElement} annotation.
+     * @param  impl       the implementation or wrapper class for which to get the package namespace.
+     * @param  uml        the {@code @UML} annotation, or {@code null} if none.
+     * @return the actual namespace (same as {@code namespace} if it was not {@value #DEFAULT}).
      */
     private String assertExpectedNamespace(String namespace, final Class<?> impl, final UML uml) {
         assertNotNull("Missing namespace.", namespace);
@@ -313,8 +313,8 @@ public abstract strictfp class Annotatio
      * Returns the namespace declared in the {@link XmlSchema} annotation of the given package,
      * or {@code null} if none.
      *
-     * @param p The package, or {@code null}.
-     * @return The namespace, or {@code null} if none.
+     * @param  p  the package, or {@code null}.
+     * @return the namespace, or {@code null} if none.
      */
     private static String getNamespace(final Package p) {
         if (p != null) {
@@ -333,8 +333,8 @@ public abstract strictfp class Annotatio
      * Returns the namespace declared in the {@link XmlRootElement} annotation of the given class,
      * or the package annotation if none is found in the class.
      *
-     * @param  impl The implementation class, or {@code null}.
-     * @return The namespace, or {@code null} if none.
+     * @param  impl  the implementation class, or {@code null}.
+     * @return the namespace, or {@code null} if none.
      */
     private static String getNamespace(final Class<?> impl) {
         if (impl == null) {
@@ -356,10 +356,10 @@ public abstract strictfp class Annotatio
      * a field having the same name than the UML identifier. If no such field is found or
      * is annotated, returns {@code null}.
      *
-     * @param  impl   The implementation class.
-     * @param  method The name of the getter method to search for.
-     * @param  uml    The UML annotation on the GeoAPI interface, or {@code null} if none.
-     * @return The {@code XmlElement}, or {@code null} if none.
+     * @param  impl    the implementation class.
+     * @param  method  the name of the getter method to search for.
+     * @param  uml     the UML annotation on the GeoAPI interface, or {@code null} if none.
+     * @return the {@code XmlElement}, or {@code null} if none.
      */
     private static XmlElement getXmlElement(final Class<?> impl, final String method, final UML uml) {
         XmlElement element = null;
@@ -389,7 +389,7 @@ public abstract strictfp class Annotatio
      * Returns {@code true} if the given method is a non-standard extension.
      * If {@code true}, then {@code method} does not need to have UML annotation.
      *
-     * @param method The method to verify.
+     * @param  method  the method to verify.
      * @return {@code true} if the given method is an extension, or {@code false} otherwise.
      *
      * @since 0.5
@@ -552,8 +552,10 @@ public abstract strictfp class Annotatio
             testingClass = type.getCanonicalName();
             final Class<?> impl = getImplementation(type);
             if (impl == null) {
-                // Implementation existence are tested by 'testImplementationAnnotations()'.
-                // It is not the purpose of this test to verify again their existence.
+                /*
+                 * Implementation existence are tested by 'testImplementationAnnotations()'.
+                 * It is not the purpose of this test to verify again their existence.
+                 */
                 continue;
             }
             testingClass = impl.getCanonicalName();

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/Assume.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/Assume.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/Assume.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/Assume.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -47,9 +47,9 @@ public final strictfp class Assume exten
      * If desired, those grids need to be downloaded by the user and stored in the directory
      * identified by the {@code SIS_DATA} environment variable.</p>
      *
-     * @param  type The directory where to search for the given file.
-     * @param  file The file that needs to exist.
-     * @return The path to the given file.
+     * @param  type  the directory where to search for the given file.
+     * @param  file  the file that needs to exist.
+     * @return the path to the given file.
      */
     public static Path assumeDataExists(final DataDirectory type, final String file) {
         assumeNotNull(System.getenv(DataDirectory.ENV));

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOn.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOn.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOn.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOn.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -41,7 +41,7 @@ public @interface DependsOn {
     /**
      * The other test classes on which this test depends.
      *
-     * @return The test dependencies.
+     * @return the test dependencies.
      */
     Class<?>[] value();
 }

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOnMethod.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOnMethod.java?rev=1779291&r1=1779290&r2=1779291&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOnMethod.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/test/DependsOnMethod.java [UTF-8] Wed Jan 18 05:31:42 2017
@@ -42,7 +42,7 @@ public @interface DependsOnMethod {
     /**
      * The names of test methods on which the annotated method depends.
      *
-     * @return The names of test methods on which the annotated method depends.
+     * @return the names of test methods on which the annotated method depends.
      */
     String[] value();
 }