mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplify properties management
This commit is contained in:
+3
-4
@@ -1,11 +1,10 @@
|
||||
package org.jetbrains.debugger.values;
|
||||
package org.jetbrains.debugger;
|
||||
|
||||
import com.intellij.util.BitUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.debugger.ObjectProperty;
|
||||
import org.jetbrains.debugger.ValueModifier;
|
||||
import org.jetbrains.debugger.VariableImpl;
|
||||
import org.jetbrains.debugger.values.FunctionValue;
|
||||
import org.jetbrains.debugger.values.Value;
|
||||
|
||||
public class ObjectPropertyImpl extends VariableImpl implements ObjectProperty {
|
||||
public static final byte WRITABLE = 0x01;
|
||||
+1
-5
@@ -1,7 +1,3 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
package org.jetbrains.jsonProtocol;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
@@ -21,7 +17,7 @@ public @interface JsonField {
|
||||
* Specifies JSON property name, which otherwise is derived from the method name (optional "get"
|
||||
* prefix is truncated with the first letter decapitalization).
|
||||
*/
|
||||
String jsonLiteralName() default "";
|
||||
String name() default "";
|
||||
|
||||
// read any primitive value as String (true as true, number as string - don't try to parse)
|
||||
boolean allowAnyPrimitiveValue() default false;
|
||||
|
||||
+1
-1
@@ -158,7 +158,7 @@ final class FieldProcessor<T> {
|
||||
}
|
||||
JsonField fieldAnnotation = method.getAnnotation(JsonField.class);
|
||||
if (fieldAnnotation != null) {
|
||||
String jsonLiteralName = fieldAnnotation.jsonLiteralName();
|
||||
String jsonLiteralName = fieldAnnotation.name();
|
||||
if (!jsonLiteralName.isEmpty()) {
|
||||
return jsonLiteralName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user