Skip to content

Commit

Permalink
Add support for Unit
Browse files Browse the repository at this point in the history
Rel #30
  • Loading branch information
nobeh committed Jun 17, 2015
1 parent 63772a6 commit 7e0ccb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/jabsc/JavaTypeTranslator.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Some ABS types have an equivalent proper Java type. This is
* function to be able to translate those.
*/
public class JavaTypeTranslator implements Function<String, String> {
class JavaTypeTranslator implements Function<String, String> {

private final Map<String, String> abs2java = new HashMap<>();

Expand All @@ -28,6 +28,7 @@ public String apply(String absType) {

protected void fill(Map<String, String> types) {
types.put("Int", Integer.class.getName());
types.put("Unit", "void");
}

}

0 comments on commit 7e0ccb1

Please sign in to comment.