Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,13 @@ public class FSTStreamDecoder implements FSTDecoder {

public FSTStreamDecoder(FSTConfiguration conf) {
this.conf = conf;
clnames = (FSTClazzNameRegistry) conf.getCachedObject(FSTClazzNameRegistry.class);
if (clnames == null) {
clnames = new FSTClazzNameRegistry(conf.getClassRegistry());
} else {
clnames.clear();
}
clnames = new FSTClazzNameRegistry(conf.getClassRegistry());
}

@Override
public void setConf(FSTConfiguration conf) {
this.conf = conf;
clnames = (FSTClazzNameRegistry) conf.getCachedObject(FSTClazzNameRegistry.class);
if (clnames == null) {
clnames = new FSTClazzNameRegistry(conf.getClassRegistry());
} else {
clnames.clear();
}
clnames = new FSTClazzNameRegistry(conf.getClassRegistry());
}

public int ensureReadAhead(int bytes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,13 @@ public class FSTStreamEncoder implements FSTEncoder {

public FSTStreamEncoder(FSTConfiguration conf) {
this.conf = conf;
clnames = (FSTClazzNameRegistry) conf.getCachedObject(FSTClazzNameRegistry.class);
if ( clnames == null ) {
clnames = new FSTClazzNameRegistry(conf.getClassRegistry());
} else {
clnames.clear();
}
clnames = new FSTClazzNameRegistry(conf.getClassRegistry());
}

@Override
public void setConf(FSTConfiguration conf) {
this.conf = conf;
clnames = (FSTClazzNameRegistry) conf.getCachedObject(FSTClazzNameRegistry.class);
if ( clnames == null ) {
clnames = new FSTClazzNameRegistry(conf.getClassRegistry());
} else {
clnames.clear();
}
clnames = new FSTClazzNameRegistry(conf.getClassRegistry());
}

void writeFBooleanArr(boolean[] arr, int off, int len) throws IOException {
Expand Down