Skip to content

Simple code refactoring. Trying to gain familiarity with the project#426

Merged
dblevins merged 2 commits into
apache:masterfrom
ShermanMarshall:build-test-commit
Feb 28, 2019
Merged

Simple code refactoring. Trying to gain familiarity with the project#426
dblevins merged 2 commits into
apache:masterfrom
ShermanMarshall:build-test-commit

Conversation

@ShermanMarshall
Copy link
Copy Markdown
Contributor

Tested, no conflicts, project builds with both JDK8 and 10. JIRA ticket is https://issues.apache.org/jira/browse/TOMEE-2479

@dblevins dblevins merged commit 458c66e into apache:master Feb 28, 2019
@dblevins
Copy link
Copy Markdown
Contributor

Clean and simple! Merged!

public class Resolver extends MavenResolver {
public InputStream resolve(final String rawLocation) {
final boolean initialized = SystemInstance.isInitialized();
final String MVN_JNDI_PREFIX = "mvn:";
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.

@ShermanMarshall @ShermanMarshall
That is a variable name and not a constant, therefore: have to match regular expression '^[a-z][a-zA-Z0-9]*$'
I belive:
final String mvnJNDIPrefix = "mvn:";
Sounds better.

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