Skip to content

Commit cda8875

Browse files
committed
build: remove jtools
1 parent c060b5d commit cda8875

3 files changed

Lines changed: 1 addition & 27 deletions

File tree

‎common-tools/clas-reco/pom.xml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636
<classifier>jar-with-dependencies</classifier>
3737
</dependency>
3838

39-
<dependency>
40-
<groupId>org.jlab.coda</groupId>
41-
<artifactId>jtools</artifactId>
42-
</dependency>
43-
4439
<dependency>
4540
<groupId>cnuphys</groupId>
4641
<artifactId>magfield</artifactId>

‎common-tools/clas-reco/src/main/java/org/jlab/clas/reco/Clas12Types.java‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import org.jlab.clara.base.error.ClaraException;
66
import org.jlab.clara.engine.ClaraSerializer;
77
import org.jlab.clara.engine.EngineDataType;
8-
import org.jlab.clas12.tools.MimeType;
9-
import org.jlab.clas12.tools.property.JPropertyList;
108
import org.jlab.jnp.hipo4.data.Event;
119

1210

@@ -30,22 +28,9 @@ public Object read(ByteBuffer buffer) throws ClaraException {
3028
}
3129
}
3230

33-
public static final EngineDataType EVIO = new EngineDataType(MimeType.EVIO.type(), EngineDataType.BYTES.serializer());
31+
public static final EngineDataType EVIO = new EngineDataType("binary/data-evio", EngineDataType.BYTES.serializer());
3432

3533
public static final EngineDataType HIPO =
3634
new EngineDataType("binary/data-hipo", new HipoSerializer());
3735

38-
public static final EngineDataType PROPERTY_LIST = new EngineDataType(MimeType.PROPERTY_LIST.type(), new ClaraSerializer() {
39-
40-
@Override
41-
public ByteBuffer write(Object data) throws ClaraException {
42-
JPropertyList pl = (JPropertyList) data;
43-
return ByteBuffer.wrap(pl.getStringRepresentation(true).getBytes());
44-
}
45-
46-
@Override
47-
public Object read(ByteBuffer buffer) throws ClaraException {
48-
return new JPropertyList(new String(buffer.array()));
49-
}
50-
});
5136
}

‎pom.xml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,6 @@
207207
<version>16.6.1</version>
208208
</dependency>
209209

210-
<dependency>
211-
<groupId>org.jlab.coda</groupId>
212-
<artifactId>jtools</artifactId>
213-
<version>2.2</version>
214-
</dependency>
215-
216210
<dependency>
217211
<groupId>org.jlab.jnp</groupId>
218212
<artifactId>jnp-hipo</artifactId>

0 commit comments

Comments
 (0)