Skip to content

Commit 27c4278

Browse files
Fix spelling mistakes
1 parent 7a5b92d commit 27c4278

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

org.knime.knip.knimepython/src/org/knime/knip/knimepython/ImgPlusDeserializer.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.knime.core.data.DataCell;
66
import org.knime.core.data.filestore.FileStoreFactory;
77
import org.knime.knip.base.data.img.ImgPlusCell;
8-
import org.knime.knip.serialization.BytesToImgPlusConvertor;
8+
import org.knime.knip.serialization.BytesToImgPlusConverter;
99
import org.knime.python.typeextension.Deserializer;
1010
import org.knime.python.typeextension.DeserializerFactory;
1111

@@ -17,23 +17,21 @@
1717
*/
1818
public class ImgPlusDeserializer extends DeserializerFactory {
1919

20-
private BytesToImgPlusConvertor m_convertor;
20+
private final BytesToImgPlusConverter m_converter;
2121

2222
public ImgPlusDeserializer() {
2323
super(ImgPlusCell.TYPE);
24-
m_convertor = new BytesToImgPlusConvertor();
24+
m_converter = new BytesToImgPlusConverter();
2525
}
2626

2727
@Override
2828
public Deserializer createDeserializer() {
29-
3029
return new Deserializer() {
3130

3231
@Override
3332
public DataCell deserialize(final byte[] bytes, final FileStoreFactory fileStoreFactory)
3433
throws IOException {
35-
36-
return m_convertor.deserialize(bytes, fileStoreFactory);
34+
return m_converter.deserialize(bytes, fileStoreFactory);
3735
}
3836
};
3937
}

org.knime.knip.knimepython/src/org/knime/knip/knimepython/ImgPlusSerializer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.io.IOException;
44

55
import org.knime.knip.base.data.img.ImgPlusValue;
6-
import org.knime.knip.serialization.ImgPlusToBytesConvertor;
6+
import org.knime.knip.serialization.ImgPlusToBytesConverter;
77
import org.knime.python.typeextension.Serializer;
88
import org.knime.python.typeextension.SerializerFactory;
99

@@ -15,23 +15,23 @@
1515
@SuppressWarnings("rawtypes")
1616
public class ImgPlusSerializer extends SerializerFactory<ImgPlusValue> {
1717

18-
private final ImgPlusToBytesConvertor m_convertor;
18+
private final ImgPlusToBytesConverter m_converter;
19+
1920
/**
2021
* Constructor
2122
*/
2223
public ImgPlusSerializer() {
2324
super(ImgPlusValue.class);
24-
m_convertor = new ImgPlusToBytesConvertor();
25+
m_converter = new ImgPlusToBytesConverter();
2526
}
2627

2728
@Override
2829
public Serializer<? extends ImgPlusValue<?>> createSerializer() {
29-
3030
return new Serializer<ImgPlusValue<?>>() {
3131

3232
@Override
3333
public byte[] serialize(final ImgPlusValue<?> value) throws IOException {
34-
return m_convertor.serialize(value);
34+
return m_converter.serialize(value);
3535
}
3636
};
3737
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @author Christian Dietz (University of Konstanz)
2727
*/
2828

29-
public class BytesToImgPlusConvertor {
29+
public class BytesToImgPlusConverter {
3030

3131
/**
3232
* ImgOpener to read ImgPlus from stream
@@ -40,7 +40,7 @@ public class BytesToImgPlusConvertor {
4040
/**
4141
* Constructor
4242
*/
43-
public BytesToImgPlusConvertor() {
43+
public BytesToImgPlusConverter() {
4444
m_imgOpener = new ImgOpener(ScifioGateway.getSCIFIO().context());
4545
m_scifioConfig = new SCIFIOConfig();
4646
m_scifioConfig.groupableSetGroupFiles(false);
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
* @author Christian Dietz (University of Konstanz)
3636
*
3737
*/
38-
public class ImgPlusToBytesConvertor {
39-
38+
public class ImgPlusToBytesConverter {
39+
4040
/**
4141
* ImgSaver to write ImgPlus to stream as tif
4242
*/
@@ -48,8 +48,8 @@ public class ImgPlusToBytesConvertor {
4848
private SCIFIOConfig m_scifioConfig;
4949

5050
private Writer m_writer;
51-
52-
public ImgPlusToBytesConvertor() {
51+
52+
public ImgPlusToBytesConverter() {
5353
m_saver = new ImgSaver(ScifioGateway.getSCIFIO().getContext());
5454
m_scifioConfig = new SCIFIOConfig();
5555
m_scifioConfig.groupableSetGroupFiles(false);

0 commit comments

Comments
 (0)