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