From c5443560b7784473555e930a1ae65bf814ac27e5 Mon Sep 17 00:00:00 2001
From: Dongjoon Hyun <dongjoon@apache.org>
Date: Wed, 27 Apr 2016 09:15:06 +0100
Subject: [PATCH] [MINOR][BUILD] Enable RAT checking on
 `LZ4BlockInputStream.java`.

## What changes were proposed in this pull request?

Since `LZ4BlockInputStream.java` is not licensed to Apache Software Foundation (ASF), the Apache License header of that file is not monitored until now.
This PR aims to enable RAT checking on `LZ4BlockInputStream.java` by excluding from `dev/.rat-excludes`.
This will prevent accidental removal of Apache License header from that file.

## How was this patch tested?

Pass the Jenkins tests (Specifically, RAT check stage).

Author: Dongjoon Hyun <dongjoon@apache.org>

Closes #12677 from dongjoon-hyun/minor_rat_exclusion_file.
---
 .../src/main/java/org/apache/spark/io/LZ4BlockInputStream.java | 3 +--
 dev/.rat-excludes                                              | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/src/main/java/org/apache/spark/io/LZ4BlockInputStream.java b/core/src/main/java/org/apache/spark/io/LZ4BlockInputStream.java
index 8783b5f56e..9d6f06ed28 100644
--- a/core/src/main/java/org/apache/spark/io/LZ4BlockInputStream.java
+++ b/core/src/main/java/org/apache/spark/io/LZ4BlockInputStream.java
@@ -1,5 +1,3 @@
-package org.apache.spark.io;
-
 /*
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,6 +11,7 @@ package org.apache.spark.io;
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+package org.apache.spark.io;
 
 import java.io.EOFException;
 import java.io.FilterInputStream;
diff --git a/dev/.rat-excludes b/dev/.rat-excludes
index a409a3cb36..67a241806d 100644
--- a/dev/.rat-excludes
+++ b/dev/.rat-excludes
@@ -94,7 +94,6 @@ gen-java.*
 org.apache.spark.sql.sources.DataSourceRegister
 org.apache.spark.scheduler.SparkHistoryListenerFactory
 .*parquet
-LZ4BlockInputStream.java
 spark-deps-.*
 .*csv
 .*tsv
-- 
GitLab