Skip to content

[MSHARED-763] - Include a dependency change detection. - #1

Closed
LiwaeLamaa wants to merge 1 commit into
apache:masterfrom
LiwaeLamaa:master
Closed

[MSHARED-763] - Include a dependency change detection.#1
LiwaeLamaa wants to merge 1 commit into
apache:masterfrom
LiwaeLamaa:master

Conversation

@LiwaeLamaa

Copy link
Copy Markdown

No description provided.

List<File> origClasspathElements;
try
{
ObjectInputStream ois = new ObjectInputStream ( new FileInputStream( mojoConfigFile ) );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we are java7 now so better using try resources or at least ois.close in finally block

catch ( FileNotFoundException e )
{
//no file, assume rebuild
return true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

at least log the exception so user knows there is a problem...

return true;
}
catch ( ClassNotFoundException e )
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

java7 so please catch with multiple exceptions


try
{
ObjectOutputStream oos = new ObjectOutputStream( new FileOutputStream( mojoConfigFile ) );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

use try resources

@jira-importer

Copy link
Copy Markdown

Resolve #38

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.

3 participants