diff options
author | Sean Owen <sowen@cloudera.com> | 2016-06-24 10:35:54 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-06-24 10:35:54 +0100 |
commit | 158af162eac7348464c6751c8acd48fc6c117688 (patch) | |
tree | 34dc5a02a2cda001a84698e52a37092b8ea087ee /scalastyle-config.xml | |
parent | f4fd7432fb9cf7b197ccada1378c4f2a6d427522 (diff) | |
download | spark-158af162eac7348464c6751c8acd48fc6c117688.tar.gz spark-158af162eac7348464c6751c8acd48fc6c117688.tar.bz2 spark-158af162eac7348464c6751c8acd48fc6c117688.zip |
[SPARK-16129][CORE][SQL] Eliminate direct use of commons-lang classes in favor of commons-lang3
## What changes were proposed in this pull request?
Replace use of `commons-lang` in favor of `commons-lang3` and forbid the former via scalastyle; remove `NotImplementedException` from `comons-lang` in favor of JDK `UnsupportedOperationException`
## How was this patch tested?
Jenkins tests
Author: Sean Owen <sowen@cloudera.com>
Closes #13843 from srowen/SPARK-16129.
Diffstat (limited to 'scalastyle-config.xml')
-rw-r--r-- | scalastyle-config.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scalastyle-config.xml b/scalastyle-config.xml index 270104f85b..9a35183c63 100644 --- a/scalastyle-config.xml +++ b/scalastyle-config.xml @@ -210,6 +210,12 @@ This file is divided into 3 sections: scala.collection.JavaConverters._ and use .asScala / .asJava methods</customMessage> </check> + <check customId="commonslang2" level="error" class="org.scalastyle.scalariform.TokenChecker" enabled="true"> + <parameters><parameter name="regex">org\.apache\.commons\.lang\.</parameter></parameters> + <customMessage>Use Commons Lang 3 classes (package org.apache.commons.lang3.*) instead + of Commons Lang 2 (package org.apache.commons.lang.*)</customMessage> + </check> + <check level="error" class="org.scalastyle.scalariform.ImportOrderChecker" enabled="true"> <parameters> <parameter name="groups">java,scala,3rdParty,spark</parameter> |