Lines 57-63
Link Here
|
57 |
* Target type file path is formed as: "org/eclipse/jdt/core/JavaCore". |
57 |
* Target type file path is formed as: "org/eclipse/jdt/core/JavaCore". |
58 |
*/ |
58 |
*/ |
59 |
public AccessRestriction getViolatedRestriction(char[] targetTypeFilePath) { |
59 |
public AccessRestriction getViolatedRestriction(char[] targetTypeFilePath) { |
60 |
|
60 |
CharOperation.replace(targetTypeFilePath, '\\', '/'); |
61 |
for (int i = 0, length = this.accessRules.length; i < length; i++) { |
61 |
for (int i = 0, length = this.accessRules.length; i < length; i++) { |
62 |
AccessRule accessRule = this.accessRules[i]; |
62 |
AccessRule accessRule = this.accessRules[i]; |
63 |
if (CharOperation.pathMatch(accessRule.pattern, targetTypeFilePath, true/*case sensitive*/, '/')) { |
63 |
if (CharOperation.pathMatch(accessRule.pattern, targetTypeFilePath, true/*case sensitive*/, '/')) { |