comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedHeightAccess.java @ 8202:e4606eae8ea5

sed src/**/*.java 's/logger/log/g'
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 12:58:17 +0200
parents 868f55932fe6
children 6d8d7425a6b5
comparison
equal deleted inserted replaced
8201:4b8c5a08de04 8202:e4606eae8ea5
17 17
18 18
19 public class BedHeightAccess 19 public class BedHeightAccess
20 extends RangeAccess 20 extends RangeAccess
21 { 21 {
22 private static final Logger logger = Logger.getLogger(BedHeightAccess.class); 22 private static final Logger log = Logger.getLogger(BedHeightAccess.class);
23 23
24 private int[] singleIDs; 24 private int[] singleIDs;
25 private int[] epochIDs; 25 private int[] epochIDs;
26 26
27 private String yearEpoch; 27 private String yearEpoch;
52 public int[] getBedHeightSingleIDs() { 52 public int[] getBedHeightSingleIDs() {
53 if (singleIDs == null) { 53 if (singleIDs == null) {
54 String data = getString("soundings"); 54 String data = getString("soundings");
55 55
56 if (data == null) { 56 if (data == null) {
57 logger.warn("No 'soundings' parameter specified!"); 57 log.warn("No 'soundings' parameter specified!");
58 return null; 58 return null;
59 } 59 }
60 else { 60 else {
61 logger.debug("getBedHeightSingleIDs(): data=" + data); 61 log.debug("getBedHeightSingleIDs(): data=" + data);
62 } 62 }
63 63
64 String[] parts = data.split(";"); 64 String[] parts = data.split(";");
65 65
66 TIntArrayList ids = new TIntArrayList(); 66 TIntArrayList ids = new TIntArrayList();
74 if (!ids.contains(i)) { 74 if (!ids.contains(i)) {
75 ids.add(i); 75 ids.add(i);
76 } 76 }
77 } 77 }
78 catch (NumberFormatException nfe) { 78 catch (NumberFormatException nfe) {
79 logger.warn("Cannot parse int from string: '" + tmp + "'"); 79 log.warn("Cannot parse int from string: '" + tmp + "'");
80 } 80 }
81 } 81 }
82 } 82 }
83 83
84 singleIDs = ids.toNativeArray(); 84 singleIDs = ids.toNativeArray();

http://dive4elements.wald.intevation.org