Skip to content
Snippets Groups Projects
Commit 94c6d522 authored by Grégory Mantelet's avatar Grégory Mantelet
Browse files

[ADQL] Fix the way to test UDF features in FeatureSet

(i.e. `Object.equals` instead of `==`).
parent 97a99e41
Branches
No related tags found
No related merge requests found
......@@ -302,7 +302,7 @@ public class FeatureSet implements Iterable<LanguageFeature> {
if (type != null) {
// CASE: UDF
if (LanguageFeature.TYPE_UDF == type)
if (LanguageFeature.TYPE_UDF.equals(type))
done = anyUdfAllowed = true;
// OTHERWISE
......@@ -403,7 +403,7 @@ public class FeatureSet implements Iterable<LanguageFeature> {
if (type != null) {
// CASE: UDF
if (LanguageFeature.TYPE_UDF == type)
if (LanguageFeature.TYPE_UDF.equals(type))
done = !(anyUdfAllowed = false);
// OTHERWISE
......@@ -464,7 +464,7 @@ public class FeatureSet implements Iterable<LanguageFeature> {
return false;
// CASE: ANY UDF
if (anyUdfAllowed && LanguageFeature.TYPE_UDF == feature.type)
if (anyUdfAllowed && LanguageFeature.TYPE_UDF.equals(feature.type))
return true;
// OTHERWISE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment