mirror of https://github.com/apache/openjpa.git
Anchor token fix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@431131 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
132602e3d2
commit
26ae2fa31c
|
@ -523,7 +523,7 @@ public class Configurations {
|
|||
|
||||
String path = resource;
|
||||
String anchor = null;
|
||||
int idx = path.indexOf('.');
|
||||
int idx = path.indexOf('#');
|
||||
if (idx != -1) {
|
||||
if (idx < path.length() - 1)
|
||||
anchor = path.substring(idx + 1);
|
||||
|
@ -596,7 +596,7 @@ public class Configurations {
|
|||
String anchor = null;
|
||||
try {
|
||||
String path = file.getCanonicalPath();
|
||||
int idx = path.indexOf('.');
|
||||
int idx = path.indexOf('#');
|
||||
if (idx != -1) {
|
||||
if (idx < path.length() - 1)
|
||||
anchor = path.substring(idx + 1);
|
||||
|
|
Loading…
Reference in New Issue