Skip to content

Commit 3746586

Browse files
committed
[Java] Tidy up after merge of PR #702.
1 parent 9c8be6d commit 3746586

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/csharp/CSharpNamespaceOutputManager.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,9 @@ public CSharpNamespaceOutputManager(final String baseDirName, final String packa
4949
Verify.notNull(packageName, "packageName");
5050

5151
final String dirName = baseDirName.endsWith("" + separatorChar) ? baseDirName : baseDirName + separatorChar;
52-
53-
final String packageComponment =
54-
Boolean.parseBoolean(System.getProperty(CSHARP_GENERATE_NAMESPACE_DIR, "true")) ?
55-
packageName.replace('.', '_') :
56-
"";
57-
58-
final String packageDirName = dirName + packageComponment;
52+
final boolean genNamespace = Boolean.parseBoolean(System.getProperty(CSHARP_GENERATE_NAMESPACE_DIR, "true"));
53+
final String packageComponent = genNamespace ? packageName.replace('.', '_') : "";
54+
final String packageDirName = dirName + packageComponent;
5955

6056
outputDir = new File(packageDirName);
6157
if (!outputDir.exists() && !outputDir.mkdirs())

0 commit comments

Comments
 (0)