- Timestamp:
- 2013-11-07T08:34:15+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java
r6370 r6371 48 48 public void initialize() throws Exception { 49 49 super.initialize(); 50 ENGINE.eval(new InputStreamReader(new MirroredInputStream("resource://data/opening_hours.js") ));50 ENGINE.eval(new InputStreamReader(new MirroredInputStream("resource://data/opening_hours.js"), "UTF-8")); 51 51 ENGINE.eval("var oh = function (x, y) {return new opening_hours(x, y);};"); 52 52 } … … 62 62 return Arrays.asList(); 63 63 } else if (obj instanceof String) { 64 return Arrays.<Object>asList(((String) obj).split("\\n")); 64 final Object[] strings = ((String) obj).split("\\n"); 65 return Arrays.asList(strings); 65 66 } else if (obj instanceof List) { 66 67 return (List) obj;
Note:
See TracChangeset
for help on using the changeset viewer.