11/*******************************************************************************
2- * Copyright (c) 2025 IBM Corporation and others.
3- *
4- * This program and the accompanying materials are made available under the
5- * terms of the Eclipse Public License v. 2.0 which is available at
6- * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
7- * which is available at https://www.apache.org/licenses/LICENSE-2.0.
8- *
9- * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
10- *
11- * Contributors:
12- * IBM Corporation - initial API and implementation
13- *******************************************************************************/
2+ * Copyright (c) 2025 IBM Corporation and others.
3+ *
4+ * This program and the accompanying materials are made available under the
5+ * terms of the Eclipse Public License v. 2.0 which is available at
6+ * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
7+ * which is available at https://www.apache.org/licenses/LICENSE-2.0.
8+ *
9+ * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
10+ *
11+ * Contributors:
12+ * IBM Corporation - initial API and implementation
13+ *******************************************************************************/
1414package io .openliberty .tools .intellij .lsp4jakarta .lsp4ij ;
1515
1616import java .util .regex .Matcher ;
@@ -31,7 +31,7 @@ public class JsonPropertyUtils {
3131 * @return String
3232 * @description Method decodes unicode property name value to string value
3333 */
34- public static String decodeUniCodeName (String propertyName ) {
34+ public static String decodeUnicodeName (String propertyName ) {
3535 Pattern pattern = Pattern .compile (JsonbConstants .JSONB_PROPERTYNAME_UNICODE ); // Pattern for detecting unicode sequence
3636 Matcher matcher = pattern .matcher (propertyName );
3737 StringBuffer decoded = new StringBuffer ();
@@ -51,10 +51,10 @@ public static String decodeUniCodeName(String propertyName) {
5151 */
5252 public static String extractPropertyNameFromJsonField (PsiAnnotation annotation ) {
5353 PsiAnnotationMemberValue psiValue = annotation .findAttributeValue ("value" );
54- String value = psiValue !=null ? psiValue .getText (): null ;
54+ String value = psiValue != null ? psiValue .getText () : null ;
5555 // Remove wrapping quotes if it's a string literal
56- if (value != null && value .startsWith ("\" " ) && value .endsWith ("\" " )) {
57- value = value .substring (1 , value .length () - 1 );
56+ if (value != null && value .startsWith ("\" " ) && value .endsWith ("\" " )) {
57+ value = value .substring (1 , value .length () - 1 );
5858 }
5959 return value ;
6060 }
0 commit comments