Skip to content

Commit 950de23

Browse files
author
Vladimir Kotal
committed
compare the value, not object
reported by Sonar
1 parent 0bbba98 commit 950de23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/PerforceRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static String protectPerforceFilename(String name) {
7171
t = t.replaceAll("#", "%23");
7272
t = t.replaceAll("\\*", "%2A");
7373
t = t.replaceAll("@", "%40");
74-
if (name != t) {
74+
if (!name.equals(t)) {
7575
LOGGER.log(Level.FINEST,
7676
"protectPerforceFilename: replaced ''{0}'' with ''{1}''",
7777
new Object[]{name, t});

0 commit comments

Comments
 (0)