Skip to content

Commit f244ca3

Browse files
author
André Behrens
committed
fix subject occurrence should be string
1 parent 42ff9b6 commit f244ca3

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/main/java/microsoft/exchange/webservices/data/core/service/item/ContactGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public static ContactGroup bind(ExchangeService service, ItemId id)
169169
* @throws ServiceObjectPropertyException the service object property exception
170170
*/
171171
@Override
172-
protected void setSubject(String subject)
172+
public void setSubject(String subject)
173173
throws ServiceObjectPropertyException {
174174
// Set is disabled in client API even though it is implemented in
175175
// protocol for Item.Subject.

src/main/java/microsoft/exchange/webservices/data/core/service/item/Item.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,23 +1028,13 @@ public void setItemClass(String value) throws Exception {
10281028
ItemSchema.ItemClass, value);
10291029
}
10301030

1031-
/**
1032-
* Gets the subject of this item.
1033-
*
1034-
* @param subject the new subject
1035-
* @throws Exception the exception
1036-
*/
1037-
protected void setSubject(String subject) throws Exception {
1038-
this.setSubject((Object) subject);
1039-
}
1040-
10411031
/**
10421032
* Sets the subject.
10431033
*
10441034
* @param subject the new subject
10451035
* @throws Exception the exception
10461036
*/
1047-
public void setSubject(Object subject) throws Exception {
1037+
public void setSubject(String subject) throws Exception {
10481038
this.getPropertyBag().setObjectFromPropertyDefinition(
10491039
ItemSchema.Subject, subject);
10501040
}

0 commit comments

Comments
 (0)