projects
/
deliverable
/
tracecompass.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ss: Add serialization logic to state values
[deliverable/tracecompass.git]
/
statesystem
/
org.eclipse.tracecompass.statesystem.core
/
src
/
org
/
eclipse
/
tracecompass
/
statesystem
/
core
/
statevalue
/
NullStateValue.java
diff --git
a/statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/statesystem/core/statevalue/NullStateValue.java
b/statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/statesystem/core/statevalue/NullStateValue.java
index c71d71c0b65d09eafc986feefd4d45fd23b605c4..d096bcb6c4faeb889f484b4ab5340687b5cf81a3 100644
(file)
--- a/
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/statesystem/core/statevalue/NullStateValue.java
+++ b/
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/statesystem/core/statevalue/NullStateValue.java
@@
-25,7
+25,8
@@
import org.eclipse.jdt.annotation.Nullable;
*/
final class NullStateValue extends TmfStateValue {
*/
final class NullStateValue extends TmfStateValue {
- private final String value = "nullValue"; //$NON-NLS-1$
+ private static final byte[] EMPTY_ARRAY = new byte[0];
+ private static final String STR_VALUE = "nullValue"; //$NON-NLS-1$
@Override
public Type getType() {
@Override
public Type getType() {
@@
-49,7
+50,12
@@
final class NullStateValue extends TmfStateValue {
@Override
public String toString() {
@Override
public String toString() {
- return value;
+ return STR_VALUE;
+ }
+
+ @Override
+ public byte[] serialize() {
+ return EMPTY_ARRAY;
}
// ------------------------------------------------------------------------
}
// ------------------------------------------------------------------------
@@
-73,7
+79,7
@@
final class NullStateValue extends TmfStateValue {
@Override
public String unboxStr() {
@Override
public String unboxStr() {
- return
value
;
+ return
STR_VALUE
;
}
@Override
}
@Override
@@
-90,5
+96,4
@@
final class NullStateValue extends TmfStateValue {
*/
return -(other.compareTo(this));
}
*/
return -(other.compareTo(this));
}
-
}
}
This page took
0.024703 seconds
and
5
git commands to generate.