Skip to content

Commit

Permalink
GH-252 - Use a namespace for the message bundle.
Browse files Browse the repository at this point in the history
This improvement moves `messages.properties` to a package in the project's namespace.
This prevents conflicts if the library is used in a project where a `messages.properties` is used from the resources root.

Co-authored-by: Michael Simons <michael.simons@neo4j.com>
  • Loading branch information
Andy2003 and michael-simons committed Nov 16, 2021
1 parent 940201b commit 1f8ed4a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@API(status = EXPERIMENTAL, since = "1.0")
public final class Cypher {

static final ResourceBundle messages = ResourceBundle.getBundle("messages");
static final ResourceBundle messages = ResourceBundle.getBundle("org.neo4j.cypherdsl.core.messages");

/**
* Create a new Node representation with at least one label, the "primary" label. This is required. All other labels
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"bundles": [
{
"name": "messages"
"name": "org.neo4j.cypherdsl.core.messages"
}
]
}

0 comments on commit 1f8ed4a

Please sign in to comment.