simplify properties management

This commit is contained in:
Vladimir Krivosheev
2015-01-09 11:50:50 +01:00
parent 73f4d10892
commit 3930eb0106
3 changed files with 5 additions and 10 deletions
@@ -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,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;
@@ -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;
}