RTC Identifier Types
![]()
My method is returning a value of type Identifier . However it is giving me warning
Any idea on how i can remove these warning . and what different types i can provide here . Here is my code snippet private Identifier getIdentifierAttributeValue(IWorkItem workItem, IAttribute attribute, IProgressMonitor monitor) throws TeamRepositoryException { Identifier tempDuration = null; if (attribute != null && workItem.hasAttribute(attribute)) { System.out.println("UpdateParentAttributes.getAttributeValue()"); tempDuration = (Identifier) workItem.getValue(attribute); System.out.println("UpdateParentAttributes.getAttributeValue()"+tempDuration); if (tempDuration != null){ System.out.println("UpdateParentAttributes.getAttributeValue()>>"+tempDuration); return tempDuration; } } return tempDuration; } |
Comments
Would have been a good idea to provide the warning text here and also tell the readers what type the attribute is.
Here some things you should read: https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/
https://rsjazz.wordpress.com/2012/08/20/manipulationg-work-item-enumeration-values/
https://rsjazz.wordpress.com/2015/02/27/a-rtc-workitem-command-line-version-2-2/ (for all the code to access and write work item attribute types).