hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r652619 - in /hadoop/core/trunk: CHANGES.txt src/java/org/apache/hadoop/io/Closeable.java
Date Thu, 01 May 2008 18:49:49 GMT
Author: cdouglas
Date: Thu May  1 11:49:49 2008
New Revision: 652619

URL: http://svn.apache.org/viewvc?rev=652619&view=rev
Log:
HADOOP-2799. Deprecate o.a.h.io.Closable in favor of java.io.Closable.
Contributed by Tsz Wo (Nicholas), SZE.


Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/java/org/apache/hadoop/io/Closeable.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=652619&r1=652618&r2=652619&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu May  1 11:49:49 2008
@@ -69,6 +69,9 @@
     HADOOP-2461. Trim property names in configuration.
     (Tsz Wo (Nicholas), SZE via shv)
 
+    HADOOP-2799. Deprecate o.a.h.io.Closable in favor of java.io.Closable.
+    (Tsz Wo (Nicholas), SZE via cdouglas)
+
   OPTIMIZATIONS
 
     HADOOP-3274. The default constructor of BytesWritable creates empty 

Modified: hadoop/core/trunk/src/java/org/apache/hadoop/io/Closeable.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/io/Closeable.java?rev=652619&r1=652618&r2=652619&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/io/Closeable.java (original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/io/Closeable.java Thu May  1 11:49:49 2008
@@ -18,13 +18,7 @@
 
 package org.apache.hadoop.io;
 
-import java.io.IOException;
-
-// NOTE: Replace with java.io.Closeable when we upgrade to Java 1.5.
-
-/** That which can be closed. */
-public interface Closeable {
-  /** Called after the last call to any other method on this object to free
-   * and/or flush resources.  Typical implementations do nothing. */
-  void close() throws IOException;
+/** @deprecated use java.io.Closeable */
+@Deprecated
+public interface Closeable extends java.io.Closeable{
 }



Mime
View raw message