You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2016/05/21 15:21:26 UTC
svn commit: r1744957 -
/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/ImmutableConfiguration.java
Author: oheger
Date: Sat May 21 15:21:26 2016
New Revision: 1744957
URL: http://svn.apache.org/viewvc?rev=1744957&view=rev
Log:
[CONFIGURATION-626] Deprecated getArray() method.
Added a comment that the same functionality is available by the
generic get() method in a type-safe way.
Modified:
commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/ImmutableConfiguration.java
Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/ImmutableConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/ImmutableConfiguration.java?rev=1744957&r1=1744956&r2=1744957&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/ImmutableConfiguration.java (original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/ImmutableConfiguration.java Sat May 21 15:21:26 2016
@@ -602,7 +602,13 @@ public interface ImmutableConfiguration
* @throws IllegalArgumentException if the default value is not an array of the specified type
*
* @since 2.0
+ * @deprecated This method should not be used any more because its signature
+ * does not allow type-safe invocations; use {@link #get(Class, String, Object)}
+ * instead which offers the same functionality; for instance, to query for an
+ * array of ints use
+ * {@code int[] result = config.get(int[].class, "myArrayKey", someDefault);}.
*/
+ @Deprecated
Object getArray(Class<?> cls, String key, Object defaultValue);
/**