Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qsplit/src/org/qcmg/split/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public final class Main {
private static boolean performLogging = true; // Default to true
private static QLogger logger;

public static void main(final String[] args) throws URISyntaxException, IOException, ClassNotFoundException {
public static void main(final String[] args) {
try {
Options options = new Options(args);
if (options.hasHelpOption()) {
Expand Down
8 changes: 4 additions & 4 deletions qsplit/src/org/qcmg/split/SingleLevelSplit.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ private void checkSingleSplitMap() throws SplitException {
StringBuilder sb = new StringBuilder();
for (Integer zc : zcToFileNameMap.keySet()) {
if ( ! singleSplitMap.containsKey(zc)) {
if (sb.length() > 0) sb.append('\n');
if (!sb.isEmpty()) sb.append('\n');
sb.append("no entry in singleSplitMap for zc: ").append(zc);
}
}
if (sb.length() != 0) {
if (!sb.isEmpty()) {
logger.error(sb.toString());
throw new SplitException(sb.toString());
}
Expand All @@ -142,12 +142,12 @@ private void checkSingleSplitMap(List<String> inputs) throws SplitException {
StringBuilder sb = new StringBuilder();
for (Entry<Integer, String> entry : singleSplitMap.entrySet()) {
if (entry.getValue().equals(input)) {
if (sb.length() > 0) sb.append('\n');
if (!sb.isEmpty()) sb.append('\n');

sb.append(zcToFileNameMap.get(entry.getKey()));
}
}
if (sb.length() == 0) {
if (sb.isEmpty()) {
logger.error("Could not find zc's for input: " + input);
throw new SplitException("Could not find zc's for input: " + input);
} else {
Expand Down