Author: rdonkin
Date: Sun Dec 8 21:32:59 2013
New Revision: 1549304
URL: http://svn.apache.org/r1549304
Log:
Format Code.
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/FileNameComparator.java
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/FileNameComparator.java
URL:
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/FileNameComparator.java?rev=1549304&r1=1549303&r2=1549304&view=diff
==============================================================================
---
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/FileNameComparator.java
(original)
+++
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/FileNameComparator.java
Sun Dec 8 21:32:59 2013
@@ -15,7 +15,7 @@
* KIND, either express or implied. See the License for the *
* specific language governing permissions and limitations *
* under the License. *
- */
+ */
package org.apache.rat.walker;
import java.io.File;
@@ -23,22 +23,22 @@ import java.util.Comparator;
class FileNameComparator implements Comparator<File> {
- public int compare(File firstFile, File secondFile) {
- int result = 0;
- if (firstFile == null) {
- if (secondFile != null) {
- result = 1;
- }
- } else {
- if (secondFile == null) {
- result = -1;
- } else {
- final String firstName = firstFile.getName();
- final String secondName = secondFile.getName();
- result = firstName.compareTo(secondName);
- }
- }
- return result;
- }
+ public int compare(File firstFile, File secondFile) {
+ int result = 0;
+ if (firstFile == null) {
+ if (secondFile != null) {
+ result = 1;
+ }
+ } else {
+ if (secondFile == null) {
+ result = -1;
+ } else {
+ final String firstName = firstFile.getName();
+ final String secondName = secondFile.getName();
+ result = firstName.compareTo(secondName);
+ }
+ }
+ return result;
+ }
}