Skip to content

Commit

Permalink
style: Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
grossws committed Jul 5, 2023
1 parent a091b34 commit 976b83c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import ws.gross.gradle.tasks.GenerateBootstrapManifest;
import ws.gross.gradle.utils.GradleUtils;

@SuppressWarnings("CodeBlock2Expr")
public class BootstrapManifestBasePlugin implements Plugin<Project> {
public static final String GENERATE_BOOTSTRAP_MANIFEST_TASK_NAME = "generateBootstrapManifest";

Expand All @@ -59,9 +60,7 @@ public BootstrapManifestBasePlugin(
public void apply(Project project) {
project.getPluginManager().apply("base");

//noinspection ConstantValue
if (!GradleUtils.isDslAccessorsGeneration(project)
&& (project.getGroup() == null || project.getGroup().toString().isEmpty())) {
if (!GradleUtils.isDslAccessorsGeneration(project) && project.getGroup().toString().isEmpty()) {
throw new IllegalArgumentException("Project group required for ws.gross.bootstrap-manifest plugin");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import static ws.gross.gradle.utils.GradleUtils.parseMap;
import static ws.gross.gradle.utils.StringUtils.toUpperCamelCase;

@SuppressWarnings("CodeBlock2Expr")
public class DefaultBootstrapManifestBuilder implements NamedBootstrapManifestBuilder {
private final String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import ws.gross.gradle.bootstrap.NamedBootstrapManifestBuilder;
import ws.gross.gradle.extensions.PrivateRepoExtension;

@SuppressWarnings("CodeBlock2Expr")
public class BootstrapManifestAction implements Action<Settings> {
private static final Logger logger = Logging.getLogger(BootstrapManifestAction.class);

Expand All @@ -33,7 +34,6 @@ public BootstrapManifestAction(String name) {
}

@Override
@SuppressWarnings("UnstableApiUsage")
public void execute(Settings settings) {
PrivateRepoExtension ext = settings.getExtensions().getByType(PrivateRepoExtension.class);
NamedBootstrapManifestBuilder manifest = ext.getManifests().getByName(name);
Expand Down

0 comments on commit 976b83c

Please sign in to comment.