Skip to content

Commit 79fa3ba

Browse files
cleanup
1 parent fa73fec commit 79fa3ba

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Before making a contribution, please take the following steps:
88
1. Check whether there's already an open issue related to your proposed contribution. If there is, join the discussion and propose your contribution there.
99
2. If there isn't already a relevant issue, create one, describing your contribution and the problem you're trying to solve.
1010
3. Respond to any questions or suggestions raised in the issue by other developers.
11-
4. Fork the project repository and prepare your proposed contribution.
11+
4. Fork the project repository and prepare your proposed contribution. The contribution must include unit tests to confirm that it behaves as expected.
1212
5. Submit a pull request.
1313

1414
NOTE: All contributors must have a contributor license agreement (CLA) on file with FINOS before their pull requests will be merged. Please review the FINOS [contribution requirements](https://community.finos.org/docs/governance/Software-Projects/contribution-compliance-requirements) and submit (or have your employer submit) the required CLA before submitting a pull request.

src/main/java/com/regnosys/rosetta/generator/python/PythonCodeGenCLI.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@
6565
*/
6666

6767
public class PythonCodeGenCLI {
68-
// java -cp <your-jar-or-classpath> com.regnosys.rosetta.generator.python.PythonCodeGenCLI -s <source-dir> -t <target-dir>
69-
// java -cp <your-jar-or-classpath> com.regnosys.rosetta.generator.python.PythonCodeGenCLI -f <source-file> -t <target-dir>
7068
private static final Logger LOGGER = LoggerFactory.getLogger(PythonCodeGenCLI.class);
7169

7270
public static void main(String[] args) {
@@ -171,7 +169,7 @@ private static void translateRosetta(List<Path> rosettaFiles, String tgtDir) {
171169
return;
172170
}
173171
XtextResourceSet resourceSet = modelLoader.getResourceSet();
174-
String version = models.get(0).getVersion();
172+
String version = models.getFirst().getVersion();
175173

176174
LOGGER.info("Processing {} models, version: {}", models.size(), version);
177175

0 commit comments

Comments
 (0)