From 905f7ff12d79d2affe14fdbca769caa984c1060d Mon Sep 17 00:00:00 2001 From: Colin McCabe Date: Fri, 14 Jun 2013 20:59:32 +0000 Subject: [PATCH] HADOOP-9646. Inconsistent exception specifications in FileUtils#chmod (Colin Patrick McCabe) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1493242 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../src/main/java/org/apache/hadoop/fs/FileUtil.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 729fee3a520..672a0278f3f 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -44,6 +44,9 @@ Release 2.1.0-beta - UNRELEASED HADOOP-9630. [RPC v9] Remove IpcSerializationType. (Junping Du via llu) + HADOOP-9646. Inconsistent exception specifications in FileUtils#chmod + (Colin Patrick McCabe) + NEW FEATURES HADOOP-9283. Add support for running the Hadoop client on AIX. (atm) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java index e24f445245c..9178844b315 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java @@ -728,7 +728,7 @@ public class FileUtil { * @throws InterruptedException */ public static int chmod(String filename, String perm - ) throws IOException, InterruptedException { + ) throws IOException { return chmod(filename, perm, false); }