Move Contributor to a top level class. Rename Main to Github
diff --git a/src/main/java/org/apache/tomee/website/contributors/Contributor.java b/src/main/java/org/apache/tomee/website/contributors/Contributor.java
new file mode 100644
index 0000000..bdfa002
--- /dev/null
+++ b/src/main/java/org/apache/tomee/website/contributors/Contributor.java
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.tomee.website.contributors;
+
+import lombok.Builder;
+import lombok.Data;
+
+@Data
+@Builder
+public class Contributor {
+ private String id;
+ private boolean committer;
+ private String name;
+ private String github;
+ private String avatar;
+}
diff --git a/src/main/java/org/apache/tomee/website/contributors/Contributors.java b/src/main/java/org/apache/tomee/website/contributors/Contributors.java
index ae95936..a70b25e 100755
--- a/src/main/java/org/apache/tomee/website/contributors/Contributors.java
+++ b/src/main/java/org/apache/tomee/website/contributors/Contributors.java
@@ -16,9 +16,6 @@
*/
package org.apache.tomee.website.contributors;
-import lombok.Builder;
-import lombok.Data;
-
import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
@@ -77,17 +74,8 @@
Thread.interrupted();
return Collections.emptyList();
}
- Collections.sort(contributors, Comparator.comparing(o -> o.name));
+ Collections.sort(contributors, Comparator.comparing(Contributor::getName));
return contributors;
}
- @Data
- @Builder
- public static class Contributor {
- private String id;
- private boolean committer;
- private String name;
- private String github;
- private String avatar;
- }
}
\ No newline at end of file