1 | /* | |
2 | * Copyright OpenSearch Contributors | |
3 | * SPDX-License-Identifier: Apache-2.0 | |
4 | */ | |
5 | ||
6 | ||
7 | package org.opensearch.sql.expression.function; | |
8 | ||
9 | import java.io.Serializable; | |
10 | import lombok.EqualsAndHashCode; | |
11 | import lombok.Getter; | |
12 | import lombok.RequiredArgsConstructor; | |
13 | ||
14 | /** | |
15 | * The definition of Function Name. | |
16 | */ | |
17 | @EqualsAndHashCode | |
18 | @RequiredArgsConstructor | |
19 | public class FunctionName implements Serializable { | |
20 | @Getter | |
21 | private final String functionName; | |
22 | ||
23 | public static FunctionName of(String functionName) { | |
24 |
1
1. of : replaced return value with null for org/opensearch/sql/expression/function/FunctionName::of → KILLED |
return new FunctionName(functionName.toLowerCase()); |
25 | } | |
26 | ||
27 | @Override | |
28 | public String toString() { | |
29 |
1
1. toString : replaced return value with "" for org/opensearch/sql/expression/function/FunctionName::toString → KILLED |
return functionName; |
30 | } | |
31 | } | |
Mutations | ||
24 |
1.1 |
|
29 |
1.1 |