This is an automated email from the ASF dual-hosted git repository. dblevins pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomee-site-generator.git
commit 5983f870f479c8a94dc954db72079300c8bd4ef3 Author: David Blevins <[email protected]> AuthorDate: Fri May 21 18:53:35 2021 -0700 Move Contributor to a top level class. Rename Main to Github --- .../tomee/website/contributors/Contributor.java | 30 ++++++++++++++++++++++ .../tomee/website/contributors/Contributors.java | 14 +--------- 2 files changed, 31 insertions(+), 13 deletions(-) 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 @@ public class Contributors { 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
