Skip to content

Commit

Permalink
[Java] Tidy up after merge of PR #702.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Jul 30, 2019
1 parent 9c8be6d commit 3746586
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,9 @@ public CSharpNamespaceOutputManager(final String baseDirName, final String packa
Verify.notNull(packageName, "packageName");

final String dirName = baseDirName.endsWith("" + separatorChar) ? baseDirName : baseDirName + separatorChar;

final String packageComponment =
Boolean.parseBoolean(System.getProperty(CSHARP_GENERATE_NAMESPACE_DIR, "true")) ?
packageName.replace('.', '_') :
"";

final String packageDirName = dirName + packageComponment;
final boolean genNamespace = Boolean.parseBoolean(System.getProperty(CSHARP_GENERATE_NAMESPACE_DIR, "true"));
final String packageComponent = genNamespace ? packageName.replace('.', '_') : "";
final String packageDirName = dirName + packageComponent;

outputDir = new File(packageDirName);
if (!outputDir.exists() && !outputDir.mkdirs())
Expand Down

0 comments on commit 3746586

Please sign in to comment.