Skip to content

Commit

Permalink
Merge pull request #11074 from yorlov/master
Browse files Browse the repository at this point in the history
Small refactoring for better code readability
  • Loading branch information
mergify[bot] committed Jan 24, 2022
2 parents 0fe1d6a + 6d2e5ae commit 47fea8d
Showing 1 changed file with 13 additions and 16 deletions.
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()));
}

0 comments on commit 47fea8d

Please sign in to comment.