Fix: `!=` is not supported in oal when parameters are numbers (#6968)

This commit is contained in:
liqiangz 2021-05-19 09:10:04 +08:00 committed by GitHub
parent 47b46f93ca
commit e7d6b5457b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,7 @@ Release Notes.
* Allow multiple definitions as fallback in metadata-service-mapping.yaml file.
* Fix: NPE when configmap has no data.
* Fix: Dynamic Configuration key `slowTraceSegmentThreshold` not work
* Fix: `!=` is not supported in oal when parameters are numbers.
#### UI
* Add logo for kong plugin.

View File

@ -23,6 +23,11 @@ import org.apache.skywalking.oap.server.core.analysis.metrics.annotation.FilterM
@FilterMatcher
public class NotEqualMatch {
public boolean match(int left, int right) {
return left != right;
}
public boolean match(Object left, Object right) {
return !Objects.equals(left, right);
}