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

GLASSFISH-21261 #92

Merged
merged 1 commit into from
Dec 1, 2014
Merged

GLASSFISH-21261 #92

merged 1 commit into from
Dec 1, 2014

Conversation

davewinters
Copy link
Contributor

No description provided.

davewinters added a commit that referenced this pull request Dec 1, 2014
@davewinters davewinters merged commit b380971 into payara:master Dec 1, 2014

public static void setFileProperties()
{
if(System.getProperty("com.sun.appserv.winFileLockRetryLimit")!=null || System.getProperty("com.sun.appserv.winFileLockRetryLimit")!="" )
Copy link
Contributor

Choose a reason for hiding this comment

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

that's a very strange condition. perhaps it should be && instead of || ?

Copy link
Contributor

Choose a reason for hiding this comment

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

You can simplify it by

Integer retryCounter = Integer.getInteger("com.sun.appserv.winFileLockRetryLimit");
if (retryCounter != null && retryCounter > 0) {
  FILE_OPERATION_MAX_RETRIES=retryCounter;
}

@jerrinot
Copy link
Contributor

jerrinot commented Dec 1, 2014

I'm pretty sure it will throw NPE if the property "com.sun.appserv.winFileLockRetryLimit" is unset.

@davewinters
Copy link
Contributor Author

Ok will modify. Thanks.

@davewinters
Copy link
Contributor Author

Thanks: #96

@jerrinot
Copy link
Contributor

jerrinot commented Dec 2, 2014

np, I like to see Glassfish is live and kicking!

michaelranaldo pushed a commit to michaelranaldo/Payara that referenced this pull request Sep 25, 2017
PAYARA-1904 Add jndi to get set ordinal commands (payara#1833)
Pandrex247 added a commit to Pandrex247/Payara that referenced this pull request Jun 30, 2020
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