bug 56154: rename setLastModifiedBy to setLastModifiedByUser

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751950 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-07-08 18:05:02 +00:00
parent ed4ae3fff0
commit 9c00c18f38
2 changed files with 7 additions and 7 deletions

View File

@ -302,11 +302,11 @@ public class POIXMLProperties {
part.setLastPrintedProperty(date);
}
/** @since POI 3.15 beta 3 */
public String getLastModifiedBy() {
public String getLastModifiedByUser() {
return part.getLastModifiedByProperty().getValue();
}
/** @since POI 3.15 beta 3 */
public void setLastModifiedBy(String user) {
public void setLastModifiedByUser(String user) {
part.setLastModifiedByProperty(user);
}
public Date getModified() {

View File

@ -209,11 +209,11 @@ public final class TestPOIXMLProperties {
}
@Test
public void testLastModifiedByProperty() {
String lastModifiedBy = _coreProperties.getLastModifiedBy();
assertEquals("Paolo Mottadelli", lastModifiedBy);
_coreProperties.setLastModifiedBy("Test User");
assertEquals("Test User", _coreProperties.getLastModifiedBy());
public void testLastModifiedByUserProperty() {
String lastModifiedByUser = _coreProperties.getLastModifiedByUser();
assertEquals("Paolo Mottadelli", lastModifiedByUser);
_coreProperties.setLastModifiedByUser("Test User");
assertEquals("Test User", _coreProperties.getLastModifiedByUser());
}
public static boolean dateTimeEqualToUTCString(Date dateTime, String utcString) {