Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 573e733

Browse files
ChristopherRiedelMateStrysewske
authored andcommitted
SORMAS-Foundation#2152: fix description
1 parent d4b9c84 commit 573e733

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

sormas-api/src/main/resources/descriptions.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Event.srcMediaDetails = Enter the source's details
111111
Event.typeOfPlace = Select the place where the event took place
112112

113113
# Facility
114-
Facility.NO_FACILITY = This facility should be used is explicitly not a facility but another place (e.g. at home). In this case, the corresponding facility type must be empty.
114+
Facility.NO_FACILITY = This facility should be used if explicitly not a facility but another place (e.g. at home) is meant. In this case, the corresponding facility type must be empty.
115115
Facility.OTHER_FACILITY = This facility should be used if the desired facility does not (yet) exist in Sormas for any reason. The corresponding facility type must be filled in, so that it is clear what kind of facility it is.
116116

117117
# Hospitalization

sormas-api/src/test/java/de/symeda/sormas/api/doc/DataDictionaryGenerator.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@
7878
*/
7979
public class DataDictionaryGenerator {
8080

81-
CellStyle defaultCellStyle;
82-
8381
@Test
8482
public void generateDataDictionary() throws FileNotFoundException, IOException {
8583

@@ -164,7 +162,7 @@ private XSSFSheet createEntitySheet(XSSFWorkbook workbook, Class<? extends Entit
164162
sheet.setColumnWidth(EntityColumn.DISEASES.ordinal(), 256 * 45);
165163
sheet.setColumnWidth(EntityColumn.OUTBREAKS.ordinal(), 256 * 10);
166164

167-
defaultCellStyle = workbook.createCellStyle();
165+
CellStyle defaultCellStyle = workbook.createCellStyle();
168166
defaultCellStyle.setWrapText(true);
169167

170168
List<Class<Enum<?>>> usedEnums = new ArrayList<Class<Enum<?>>>();
@@ -253,7 +251,7 @@ private XSSFSheet createEntitySheet(XSSFWorkbook workbook, Class<? extends Entit
253251

254252
// constant facilities
255253
if (CaseDataDto.class.equals(entityClass) || PersonDto.class.equals(entityClass)) {
256-
rowNumber = createFacilityTable(sheet, rowNumber + 1);
254+
rowNumber = createFacilityTable(sheet, rowNumber + 1, defaultCellStyle);
257255
}
258256

259257
// enums
@@ -264,7 +262,7 @@ private XSSFSheet createEntitySheet(XSSFWorkbook workbook, Class<? extends Entit
264262
return sheet;
265263
}
266264

267-
private int createFacilityTable(XSSFSheet sheet, int startRow) {
265+
private int createFacilityTable(XSSFSheet sheet, int startRow, CellStyle defaultCellStyle) {
268266

269267
// Create
270268
XSSFTable table = sheet.createTable();

0 commit comments

Comments
 (0)