package org.apache.jackrabbit.oak.jcr.state;

import org.apache.jackrabbit.oak.jcr.json.JsonValue;
import org.apache.jackrabbit.oak.model.AbstractPropertyState;

public class PropertyStateImpl extends AbstractPropertyState {
private final String name;
private final JsonValue value;

public PropertyStateImpl(String name, JsonValue value) {
    this.name = name;
    this.value = value;
}

    public JsonValue getValue() {
        return value;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getEncodedValue() {
        return value.toJson();
    }

    @Override
    public String toString() {
        return name + ':' + getEncodedValue();
    }
}

@@ -218,16 +218,20 @@
 State %7B%0A
+    
 private 
@@ -249,16 +249,20 @@
 g name;%0A
+    
 private 
@@ -281,24 +281,28 @@
 lue value;%0A%0A
+    
 public Prope
@@ -342,24 +342,28 @@
 ue value) %7B%0A
+    
     this.nam
@@ -372,24 +372,28 @@
 = name;%0A    
+  
+  
 this.value =
@@ -400,16 +400,20 @@
  value;%0A
+    
 %7D%0A%0A    p

Clean up oak-jcr - formatting