Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinShalit committed Aug 27, 2016
1 parent 40450c5 commit fc680f8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ protected SocketHint createSocketHint() {
public String toString() {
return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name());
}

public String toProperty() {
return toString().toUpperCase();
}
}

@AssistedInject
Expand Down Expand Up @@ -134,7 +138,7 @@ protected boolean updateOutputSockets() {
public Properties getProperties() {
Properties properties = new Properties();
properties.setProperty(PATH_PROPERTY, path);
properties.setProperty(TYPE_PROPERTY, type.toString().toUpperCase());
properties.setProperty(TYPE_PROPERTY, type.toProperty());
return properties;
}

Expand Down

0 comments on commit fc680f8

Please sign in to comment.