Commit e5ebe7bf authored by Simon Barner's avatar Simon Barner
Browse files

Fix some warnings.

parent 51bd6a1d
AbstractComponentToImage.java c8fd6c53113c500481c11efcb14ea9bfb567e781 GREEN
AbstractComponentToImage.java 52421af83ae1cae7cc7e1ec6e3e9124e094898ee GREEN
ExportComponentToImage.java b2f3cd745e601aa910cc724f6cda44221ceea079 GREEN
ExportModelToDocument.java 31c5951b93504bc21c7e8dd8ece37175215ed0e7 GREEN
......@@ -247,7 +247,7 @@ public abstract class AbstractComponentToImage implements IContextMenuContributo
final PortDescriptor descriptor = new PortDescriptor();
descriptor.name = ((Port)connector).getName();
descriptor.type = getType(component, (Port)connector);
descriptor.type = getType((Port)connector);
descriptor.range = getRange(component, (Port)connector);
descriptor.notes = "";
......@@ -625,20 +625,35 @@ public abstract class AbstractComponentToImage implements IContextMenuContributo
}
}
/** Gets the type. */
@SuppressWarnings("unused")
protected String getType(Component component, Port port) {
/**
* Gets the type of a {@link Port}.
*
* @param port
* {@link Port} to get the type for.
* @return Type of {@link Port}.
*/
protected String getType(Port port) {
return port.getVariableType().toString();
}
/** Gets the type. */
@SuppressWarnings("unused")
/**
* Gets the type of a {@link Component}.
*
* @param component
* {@link Component} to get the type for.
* @return Type of {@link Component}.
*/
protected String getType(Component component) {
return "";
}
/** Gets the refinement type. */
@SuppressWarnings("unused")
/**
* Gets the refinement type of a {@link Component}.
*
* @param component
* {@link Component} to get the refined type for.
* @return Refinement type of {@link Component}.
*/
protected String getRefinementType(Component component) {
return "";
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment