Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small refactoring for better code readability #11074

Merged
merged 1 commit into from
Jan 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 13 additions & 16 deletions dev-mode/build-link/src/main/java/play/core/Build.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,22 @@

package play.core;

import java.util.Arrays;
import java.util.Collections;
import java.util.ArrayList;
import java.util.List;

public class Build {

public static final List<String> sharedClasses;

static {
List<String> list = new ArrayList<>();
list.add(play.core.BuildLink.class.getName());
list.add(play.core.BuildDocHandler.class.getName());
list.add(play.core.server.ReloadableServer.class.getName());
list.add(play.api.UsefulException.class.getName());
list.add(play.api.PlayException.class.getName());
list.add(play.api.PlayException.InterestingLines.class.getName());
list.add(play.api.PlayException.RichDescription.class.getName());
list.add(play.api.PlayException.ExceptionSource.class.getName());
list.add(play.api.PlayException.ExceptionAttachment.class.getName());
sharedClasses = Collections.unmodifiableList(list);
}
public static final List<String> sharedClasses =
Collections.unmodifiableList(
Arrays.asList(
play.core.BuildLink.class.getName(),
play.core.BuildDocHandler.class.getName(),
play.core.server.ReloadableServer.class.getName(),
play.api.UsefulException.class.getName(),
play.api.PlayException.class.getName(),
play.api.PlayException.InterestingLines.class.getName(),
play.api.PlayException.RichDescription.class.getName(),
play.api.PlayException.ExceptionSource.class.getName(),
play.api.PlayException.ExceptionAttachment.class.getName()));
}