Skip to content

Commit

Permalink
Replaced == with equals on two String objects (#2102)
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterOlivier authored Dec 17, 2024
1 parent 043b663 commit 540416b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/rascalmpl/values/parsetrees/TreeAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,9 @@ public static IList searchCategory(ITree tree, String category) {
IListWriter writer = ValueFactoryFactory.getValueFactory().listWriter();
if (isAppl(tree)) {
String s = ProductionAdapter.getCategory(getProduction(tree));
if (s == category)
if (s.equals(category)) {
writer.append(tree);
else {
} else {
IList z = getArgs(tree);
for (IValue q : z) {
if (!(q instanceof IConstructor))
Expand Down

0 comments on commit 540416b

Please sign in to comment.