Skip to content

Add model package#636

Merged
mezarin merged 4 commits into
OpenLiberty:devfrom
mezarin:dirStructureUpdate
Jun 17, 2026
Merged

Add model package#636
mezarin merged 4 commits into
OpenLiberty:devfrom
mezarin:dirStructureUpdate

Conversation

@mezarin

@mezarin mezarin commented Jun 16, 2026

Copy link
Copy Markdown
Member

This PR adds:

  • Model package to contain model related classes.
  • Build Metadata interface.

@mezarin mezarin requested a review from ajm01 June 16, 2026 11:20

@ajm01 ajm01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found a few nits for you to consider


Project proj = projectsByName.get(iProject.getName());
if (proj.getBuildType() == Project.BuildType.MAVEN && proj.isAggregated()) {
ProjectModel proj = projectsByName.get(iProject.getName());

@ajm01 ajm01 Jun 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i looked into any paths coming in here where projectsByName.get(iProject.getName()) could return a null - looks like LaunchConfigurationHelper.getLaunchConfiguration() (line 80) could send in a null iProject? if so should have a null guard after getting the proj value.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reviewing the code, i don't see how you get a null here given that you need to select a project to get into this path. This particular method will either be going away or its function will change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok - sounds good, just wanted to be certain

/**
* Indicates whether this project has been disabled to run on a Liberty server.
*
* @return {@code true} if this this project is disabled to run on a Liberty server, {@code false} otherwise.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra "this" in the javadoc

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made the update.

@mezarin mezarin force-pushed the dirStructureUpdate branch from 08f97c6 to 0cdec40 Compare June 17, 2026 13:08

@ajm01 ajm01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mezarin mezarin merged commit 5bb119b into OpenLiberty:dev Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants