mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
Fixes from audit
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1973 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
7739bb2255
commit
341eda2789
@ -293,6 +293,7 @@ public final class ExchangeSessionFactory {
|
||||
enumeration = NetworkInterface.getNetworkInterfaces();
|
||||
while (!up && enumeration.hasMoreElements()) {
|
||||
NetworkInterface networkInterface = enumeration.nextElement();
|
||||
//noinspection Since15
|
||||
up = networkInterface.isUp() && !networkInterface.isLoopback()
|
||||
&& networkInterface.getInetAddresses().hasMoreElements();
|
||||
}
|
||||
|
@ -130,6 +130,12 @@ public class VCalendar extends VObject {
|
||||
return firstVevent != null && isCdoAllDay(firstVevent);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get email from property value.
|
||||
*
|
||||
* @param property property
|
||||
* @return email value
|
||||
*/
|
||||
public String getEmailValue(VProperty property) {
|
||||
if (property == null) {
|
||||
return null;
|
||||
@ -536,6 +542,12 @@ public class VCalendar extends VObject {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get properties by name from first VEVENT.
|
||||
*
|
||||
* @param name property name
|
||||
* @return properties
|
||||
*/
|
||||
public List<VProperty> getFirstVeventProperties(String name) {
|
||||
if (firstVevent == null) {
|
||||
return null;
|
||||
|
@ -34,6 +34,7 @@ import java.util.Map;
|
||||
/**
|
||||
* XmlStreamReader utility methods
|
||||
*/
|
||||
@SuppressWarnings("Since15")
|
||||
public final class XMLStreamUtil {
|
||||
private static final Logger LOGGER = Logger.getLogger(XMLStreamUtil.class);
|
||||
|
||||
|
@ -2974,7 +2974,7 @@ public class DavExchangeSession extends ExchangeSession {
|
||||
LOGGER.debug("Deleted to :" + destination);
|
||||
}
|
||||
|
||||
protected String getItemProperty(String permanentUrl, String propertyName) throws IOException, DavException, MessagingException {
|
||||
protected String getItemProperty(String permanentUrl, String propertyName) throws IOException, DavException {
|
||||
String result = null;
|
||||
DavPropertyNameSet davPropertyNameSet = new DavPropertyNameSet();
|
||||
davPropertyNameSet.add(Field.getPropertyName(propertyName));
|
||||
|
@ -481,7 +481,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
}
|
||||
|
||||
|
||||
public void sendMessage(String itemClass, byte[] messageBody) throws IOException {
|
||||
protected void sendMessage(String itemClass, byte[] messageBody) throws IOException {
|
||||
EWSMethod.Item item = new EWSMethod.Item();
|
||||
item.type = "Message";
|
||||
item.mimeContent = Base64.encodeBase64(messageBody);
|
||||
@ -2037,7 +2037,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
}
|
||||
|
||||
|
||||
public FolderId getFolderId(String folderPath) throws IOException {
|
||||
protected FolderId getFolderId(String folderPath) throws IOException {
|
||||
FolderId folderId = getFolderIdIfExists(folderPath);
|
||||
if (folderId == null) {
|
||||
throw new HttpNotFoundException("Folder '" + folderPath + "' not found");
|
||||
|
@ -266,7 +266,7 @@ public class FrameGatewayTray implements DavGatewayTrayInterface {
|
||||
inactiveImage = DavGatewayTray.loadImage(AwtGatewayTray.TRAY_INACTIVE_PNG);
|
||||
|
||||
mainFrame = new JFrame();
|
||||
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
mainFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||
mainFrame.setTitle(BundleMessage.format("UI_DAVMAIL_GATEWAY"));
|
||||
mainFrame.setIconImage(image);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user